X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fipv4.h;h=004f4e5d51924d7f8ec2c766be2725949216035f;hb=0530bf8704f92e9741d969d6576bf8e2bbf026be;hp=a412c6053d101f14cb91cb4e036cc99a2869cc65;hpb=33f0918cde36accb606271c379bc8e75973e9d59;p=tinc diff --git a/src/ipv4.h b/src/ipv4.h index a412c605..004f4e5d 100644 --- a/src/ipv4.h +++ b/src/ipv4.h @@ -86,6 +86,8 @@ struct ip { }; #endif +STATIC_ASSERT(sizeof(struct ip) == 20, "ip has incorrect size"); + #ifndef IP_OFFMASK #define IP_OFFMASK 0x1fff #endif @@ -148,4 +150,6 @@ struct icmp { }; #endif +STATIC_ASSERT(sizeof(struct icmp) == 28, "icmp has incorrect size"); + #endif