]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add tt_initialised flag to the orig_node struct
authorAntonio Quartulli <ordex@autistici.org>
Mon, 7 Nov 2011 15:36:40 +0000 (16:36 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Thu, 16 Feb 2012 18:50:18 +0000 (02:50 +0800)
commit7f1b654df1e8828c31678607f8466f9b37917c05
treea2513bb57d5685db9cfeab65a3d9c645c0df5e7c
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
batman-adv: add tt_initialised flag to the orig_node struct

(ttvn == 0) is currently used as initial condition. However this is not a good
idea because ttvn gets the vale zero each time after reaching the maximum value
(wrap around). For this reason a new flag is added in order to define whether a
node has an initialised table or not. Moreover, after invoking
tt_global_del_orig(), tt_initialised has to be set to false

Reported-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/originator.c
net/batman-adv/translation-table.c
net/batman-adv/types.h