batman-adv: turn tt commit code into routing protocol agnostic API
authorMarek Lindner <lindner_marek@yahoo.de>
Sun, 6 May 2012 20:22:05 +0000 (04:22 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:01:05 +0000 (18:01 +0200)
commitbe9aa4c1e0d7124cf976831db098f1e852fdbd14
tree652acbdcf0bc309de8e69ab76ca233d5a9c652a7
parentbeeb96a4142180c34ddf592aef5a278c2d676bf0
batman-adv: turn tt commit code into routing protocol agnostic API

Prior to this patch the translation table code made assumptions about how
the routing protocol works and where its buffers are stored (to directly
modify them).
Each protocol now calls the tt code with the relevant pointers, thereby
abstracting the code.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/send.c
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h
net/batman-adv/types.h