On Monday, August 27, 2012 17:44:43 Antonio Quartulli wrote:
in case of client roaming a new global entry is added while a corresponding
local one is still present. In this case the node can safely pass the WIFI
flag from the local to the global entry.
This change is required to let the AP-isolation correctly working in case
of roaming: if a generic WIFI client C roams from node A to B, A adds a
global entry for C without adding any WIFI flag. The latter will be set
only later, once A has received C's advertisement from B. In this time
period the AP-Isolation (if enabled) would not correctly work since C is
not marked as WIFI, so allowing it to communicate with other WIFI clients.
Signed-off-by: Antonio Quartulli <redacted>
---
v5:
- reduced code complexity
- batadv_tt_local_remove() now returns the flags set on the removed entry.
translation-table.c | 31 +++++++++++++++++++++++++------
translation-table.h | 6 +++---
2 files changed, 28 insertions(+), 9 deletions(-)
Applied in revision 0ac0147.
Thanks,
Marek