]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix size of batadv_icmp_header
authorAntonio Quartulli <antonio@meshcoding.com>
Thu, 5 Dec 2013 14:33:00 +0000 (15:33 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 28 Dec 2013 11:51:16 +0000 (12:51 +0100)
commit979f0079fc8978bd1dc73544b43e8d44bef5043f
tree7c3910eb29b61fdc3cea7e9c8eea14a2e0e1771c
parentcd647bb78f08e907e477b7be4166f74e15e9a689
batman-adv: fix size of batadv_icmp_header

struct batadv_icmp_header currently has a size of 17, which
will be padded to 20 on some architectures. Fix this by
unrolling the header into the parent structures.

Moreover keep the ICMP parsing functions as generic as they
are now by using a stub icmp_header struct during packet
parsing.

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/main.c
net/batman-adv/packet.h
net/batman-adv/routing.c