batman-adv: implement batadv_tt_entries
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 28 May 2013 11:14:27 +0000 (13:14 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 12 Oct 2013 15:17:11 +0000 (17:17 +0200)
commit298e6e685bbdacc781b64a94e0d215f78db5dc13
tree7703698a0a2d72b09a358d07a9014a8d906a3602
parent56a5ca8409072d9d982d0904f60a4a6096d2dec0
batman-adv: implement batadv_tt_entries

Implement batadv_tt_entries() to get the number of entries
fitting in a given amount of bytes. This computation is done
several times in the code and therefore it is useful to have
an helper function.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c