=== modified file 'src/common/protocols/ipv4.h' --- src/common/protocols/ipv4.h 2012-09-16 14:13:44 +0000 +++ src/common/protocols/ipv4.h 2012-11-07 14:36:12 +0000 @@ -38,7 +38,7 @@ /** * @brief The IPv4 header */ -struct ipv4_hdr +struct __attribute__((packed)) ipv4_hdr { #if WORDS_BIGENDIAN == 1 unsigned int version:4; === modified file 'src/common/protocols/ipv6.h' --- src/common/protocols/ipv6.h 2012-09-16 14:13:44 +0000 +++ src/common/protocols/ipv6.h 2012-11-07 14:27:40 +0000 @@ -36,7 +36,7 @@ /** * @brief The IPv6 address */ -struct ipv6_addr +struct __attribute__((packed)) ipv6_addr { union { @@ -44,20 +44,20 @@ uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; } __in6_u; -#define s6_addr __in6_u.__u6_addr8 -#define s6_addr16 __in6_u.__u6_addr16 -#define s6_addr32 __in6_u.__u6_addr32 +#define su6_addr __in6_u.__u6_addr8 +#define su6_addr16 __in6_u.__u6_addr16 +#define su6_addr32 __in6_u.__u6_addr32 }; /** * @brief The IPv6 header */ -struct ipv6_hdr +struct __attribute__((packed)) ipv6_hdr { - union + union __attribute__((packed)) { - struct ip6_hdrctl + struct __attribute__((packed)) ip6_hdrctl { uint32_t ip6_un1_flow; /* 4 bits version, 8 bits TC, 20 bits flow-ID */ === modified file 'src/common/protocols/udp.h' --- src/common/protocols/udp.h 2012-09-16 14:13:44 +0000 +++ src/common/protocols/udp.h 2012-11-07 14:35:04 +0000 @@ -63,7 +63,7 @@ /* UDP header */ -struct udphdr +struct __attribute__((packed)) udphdr { uint16_t source; uint16_t dest;