On Thursday 05 December 2013 15:33:00 Antonio Quartulli wrote:
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
Changes from v2:
- readded comment next to msg_type memeber
main.c | 4 ++-- packet.h | 40 +++++++++++++++++++++++++++++++++++----- routing.c | 14 +++++++------- 3 files changed, 44 insertions(+), 14 deletions(-)
Applied in revision 6d80786.
Thanks, Marek