diff options
| author | 2012-02-26 15:39:42 +0100 | |
|---|---|---|
| committer | 2012-04-18 09:54:02 +0200 | |
| commit | 1e5cc266dbc401d11aefb966ad35e651c2f67414 (patch) | |
| tree | fd920a0dca939ae719066941445cb87d8284969f /include/linux | |
| parent | batman-adv: print OGM seq numbers as unsigned int (diff) | |
batman-adv: skip the window protection test when the originator has no neighbours
When we receive an OGM from from a node for the first time, the last_real_seqno
field of the orig_node structure has not been initialised yet. The value of this
field is used to compute the current ogm-seqno window and therefore the
protection mechanism will probably drop the packet due to an out-of-window error.
To avoid this situation this patch adds a check to skip the window protection
mechanism if no neighbour nodes have already been added. When the first
neighbour node is added, the last_real_seqno field is initialised too.
Reported-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
