]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: create common header for ICMP packets
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 18 May 2013 12:56:57 +0000 (14:56 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 12 Oct 2013 15:17:09 +0000 (17:17 +0200)
commitfb357690850cb4c554c86400c7400f91684fcb43
treea9e591fe7314fab7c6554959df2c6340699edc46
parent83a9e2b34e80ebb9d48259641dea158368e9181b
batman-adv: create common header for ICMP packets

the icmp and the icmp_rr packets share the same initial
fields since they use the same code to be processed and
forwarded.

Extract the common fields and put them into a separate
struct so that future ICMP packets can be easily added
without bloating the packet definition.

However, keep the seqno field outside of the newly created
common header because future ICMP types may require a
bigger sequence number space.

This change breaks compatibility due to fields reordering
in the ICMP headers.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/icmp_socket.c
net/batman-adv/main.c
net/batman-adv/packet.h
net/batman-adv/routing.c