batman-adv: delete global entry in case of roaming
authorAntonio Quartulli <ordex@autistici.org>
Sun, 4 Dec 2011 21:38:27 +0000 (22:38 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 6 Dec 2011 19:12:59 +0000 (03:12 +0800)
commit797399b415b78dacdbcaffdb89e46e369ec88b98
tree1c140c512317ae78ddb3687270c7fee597586e77
parent03fc3070457dc0e6a717a2e732af93ef1cb2ae51
batman-adv: delete global entry in case of roaming

When receiving a DEL change for a client due to a roaming event (change is
marked with TT_CLIENT_ROAM), each node  has to check if the client roamed
to itself or somewhere else.

In the latter case the global entry is kept to avoid having no route at all
otherwise we can safely delete the global entry

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