]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb332efb6c874d6fb601bdae8a502b7146e42b9f5
tree7703698a0a2d72b09a358d07a9014a8d906a3602
parenta405bee080fca39b394f14032f0a5eec05b7f8bf
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