linux/net/batman-adv
Antonio Quartulli 1e5cc266db 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>
2012-04-18 09:54:02 +02:00
..
bat_algo.h
bat_debugfs.c batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
bat_debugfs.h
bat_iv_ogm.c batman-adv: skip the window protection test when the originator has no neighbours 2012-04-18 09:54:02 +02:00
bat_sysfs.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
bat_sysfs.h
bitarray.c batman-adv: Replace bitarray operations with bitmap 2012-04-11 14:28:58 +02:00
bitarray.h batman-adv: Replace bitarray operations with bitmap 2012-04-11 14:28:58 +02:00
bridge_loop_avoidance.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
bridge_loop_avoidance.h batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
gateway_client.c
gateway_client.h
gateway_common.c
gateway_common.h
hard-interface.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
hard-interface.h
hash.c
hash.h
icmp_socket.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
icmp_socket.h
Kconfig batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
main.c batman-adv: refactoring API: find generalized name for bat_ogm_init_primary callback 2012-04-18 09:54:00 +02:00
main.h batman-adv: add broadcast duplicate check 2012-04-11 14:28:59 +02:00
Makefile batman-adv: add bridge loop avoidance compile option 2012-04-11 14:29:00 +02:00
originator.c batman-adv: add basic bridge loop avoidance code 2012-04-11 14:28:58 +02:00
originator.h
packet.h batman-adv: mark existing ogm variables as batman iv 2012-04-18 09:54:01 +02:00
ring_buffer.c
ring_buffer.h
routing.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
routing.h batman-adv: remove old bridge loop avoidance code 2012-04-11 14:28:58 +02:00
send.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
send.h
soft-interface.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
soft-interface.h batman-adv: remove old bridge loop avoidance code 2012-04-11 14:28:58 +02:00
translation-table.c batman-adv: convert the tt_crc to network order 2012-04-18 09:43:36 +02:00
translation-table.h batman-adv: Remove declaration of only locally used functions 2012-04-11 14:28:58 +02:00
types.h batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
unicast.c
unicast.h
vis.c batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr) 2012-04-18 09:54:01 +02:00
vis.h