X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fipv4.h;h=dd4a8b96713feaa630f96367da2baeb503fc6620;hp=0ee46fb24e1bbcd3c9d87ad81892c3e7257e84cf;hb=a5f899a9794f215e8174455ead04862a2c14a5b1;hpb=1d7706a8506d8073def0965da809960c6ad8bf9a diff --git a/lib/ipv4.h b/lib/ipv4.h index 0ee46fb2..dd4a8b96 100644 --- a/lib/ipv4.h +++ b/lib/ipv4.h @@ -1,7 +1,7 @@ /* ipv4.h -- missing IPv4 related definitions - Copyright (C) 2003 Ivo Timmermans - 2003 Guus Sliepen + Copyright (C) 2005 Ivo Timmermans + 2006 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 @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: ipv4.h,v 1.1.2.4 2003/10/08 11:34:55 guus Exp $ + $Id$ */ #ifndef __TINC_IPV4_H__ @@ -35,6 +35,10 @@ #define ICMP_DEST_UNREACH 3 #endif +#ifndef ICMP_FRAG_NEEDED +#define ICMP_FRAG_NEEDED 4 +#endif + #ifndef ICMP_NET_UNKNOWN #define ICMP_NET_UNKNOWN 6 #endif @@ -63,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; @@ -71,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;