]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: in case of roaming mark the client with TT_CLIENT_ROAM
authorAntonio Quartulli <ordex@autistici.org>
Sun, 4 Dec 2011 11:26:50 +0000 (12:26 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 6 Dec 2011 19:12:55 +0000 (03:12 +0800)
commit9d1d57183264be832ec7da22a52a951f6d2b5f97
tree103840f9e06192967bde51604ddf897f47c61ad6
parent5c83bc36fbfc8fd80bc8d0dd817f296b1515fe47
batman-adv: in case of roaming mark the client with TT_CLIENT_ROAM

In case of a client roaming from node A to node B, the latter have to mark the
corresponding global entry with TT_CLIENT_ROAM (instead of TT_CLIENT_PENDING).

Marking a global entry with TT_CLIENT_PENDING will end up in keeping such entry
forever (because this flag is only meant to be used with local entries and it is
never checked on global ones).

In the worst case (all the clients roaming to the same node A) the local and the
global table will contain exactly the same clients. Batman-adv will continue to
work, but the memory usage is duplicated.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/translation-table.c