]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add build checks for packet sizes
authorSimon Wunderlich <sw@simonwunderlich.de>
Tue, 17 Dec 2013 18:12:12 +0000 (19:12 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sun, 12 Jan 2014 13:41:19 +0000 (14:41 +0100)
commitb5bce23fa9f7cfd3a504147f3f01ebe05f47d10f
tree8b0d2726387140170dcac73d6b0ff11567f3502d
parent569971f0ccd2fef56122ba4cab1a28f38d1d5042
batman-adv: add build checks for packet sizes

With unrolling the batadv_header into the respective structures, the
offsetof checks are now useless. Instead, add build checks for all
packet types which go over the wire to avoid problems with wrong sizes
or compatibility issues on some architectures which don't use every day.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/main.c