On Tue, Apr 03, 2012 at 11:50:19 +0200, Antonio Quartulli wrote:
During an OGM interval (time between two successive OGM sendings) a client could be deleted (e.g. due to roaming) and then be re-added immediately after. After the deletion, the client is marked with the TT_CLIENT_PENDING flag. Therefore, in case of re-addition, the latter flag has to be reset
Signed-off-by: Antonio Quartulli ordex@autistici.org
- /* if the client is marked as PENDING means that it has been marked for
* deletion during THIS OGM interval and the event has not been
* announced yet. Therefore we can simply unset the flag. The event from
* the event queue will be automatically be removed from the queue.
* Otherwise we can set the NEW flag */
if (tt_local_entry->common.flags & TT_CLIENT_PENDING)
tt_local_entry->common.flags &= ~TT_CLIENT_PENDING;
mh..When I wrote this patch "batman-adv: unset the TT_CLIENT_PENDING flag if the new local entry already exists" was not applied yet, therefore this patch must be reviewed.
Please wait before considering committing this patchset.
Cheers,