X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fipv4.h;h=39e88d3a878544a3b6e77247bbd6391e6e51e1c7;hp=060f8ae92a501a74a221aca9180bfab75a6b0974;hb=a5a4d2b865879b8694760c0a5b5909c9a3675027;hpb=7926a156e5b118d06295228e57de0cc9de0433b4 diff --git a/lib/ipv4.h b/lib/ipv4.h index 060f8ae9..39e88d3a 100644 --- a/lib/ipv4.h +++ b/lib/ipv4.h @@ -1,7 +1,7 @@ /* ipv4.h -- missing IPv4 related definitions - Copyright (C) 2004 Ivo Timmermans - 2004 Guus Sliepen + Copyright (C) 2005 Ivo Timmermans + 2005 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -67,7 +67,6 @@ struct ip { #define IP_RF 0x8000 #define IP_DF 0x4000 #define IP_MF 0x2000 -#define IP_OFFMASK 0x1fff uint8_t ip_ttl; uint8_t ip_p; uint16_t ip_sum; @@ -75,6 +74,10 @@ struct ip { } __attribute__ ((__packed__)); #endif +#ifndef IP_OFFMASK +#define IP_OFFMASK 0x1fff +#endif + #ifndef HAVE_STRUCT_ICMP struct icmp { uint8_t icmp_type;