X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fipv4.h;h=708e5c1f6b0a69d192106aefca33d9c130b679cd;hb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;hp=7ad7e01be32a9c032e4f474f0cbf1f6c43c7722f;hpb=5822f817aa802c2c5a83e9d99a8ae78cb822799b;p=tinc diff --git a/src/ipv4.h b/src/ipv4.h index 7ad7e01b..708e5c1f 100644 --- a/src/ipv4.h +++ b/src/ipv4.h @@ -21,6 +21,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "system.h" + #ifndef AF_INET #define AF_INET 2 #endif @@ -64,11 +66,11 @@ #ifndef HAVE_STRUCT_IP struct ip { #if __BYTE_ORDER == __LITTLE_ENDIAN - unsigned int ip_hl:4; - unsigned int ip_v:4; + unsigned int ip_hl: 4; + unsigned int ip_v: 4; #else - unsigned int ip_v:4; - unsigned int ip_hl:4; + unsigned int ip_v: 4; + unsigned int ip_hl: 4; #endif uint8_t ip_tos; uint16_t ip_len; @@ -81,7 +83,7 @@ struct ip { uint8_t ip_p; uint16_t ip_sum; struct in_addr ip_src, ip_dst; -} __attribute__ ((__gcc_struct__, __packed__)); +} __attribute__((__gcc_struct__)) __attribute((__packed__)); #endif #ifndef IP_OFFMASK @@ -143,7 +145,7 @@ struct icmp { #define icmp_radv icmp_dun.id_radv #define icmp_mask icmp_dun.id_mask #define icmp_data icmp_dun.id_data -} __attribute__ ((__gcc_struct__, __packed__)); +} __attribute__((__gcc_struct__)) __attribute((__packed__)); #endif #endif