batman-adv: move neigh_node list add into batadv_neigh_node_new()
authorMarek Lindner <mareklindner@neomailbox.ch>
Sat, 25 Jul 2015 20:57:43 +0000 (04:57 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 27 Aug 2015 18:15:31 +0000 (20:15 +0200)
commit741aa06bfb0ab731086d258a1838152fe2502b5f
treea2f2d2215e913c789720623e267984632bcfe340
parent39bf7618f038474a0ccbeb0be173f11e147bd083
batman-adv: move neigh_node list add into batadv_neigh_node_new()

All batadv_neigh_node_* functions expect the neigh_node list item to be part
of the orig_node->neigh_list, therefore the constructor of said list item
should be adding the newly created neigh_node to the respective list.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Acked-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/originator.c