/*
ipv4.h -- missing IPv4 related definitions
- Copyright (C) 2003 Ivo Timmermans <ivo@o2w.nl>
- 2003 Guus Sliepen <guus@sliepen.eu.org>
+ Copyright (C) 2005 Ivo Timmermans
+ 2006 Guus Sliepen <guus@tinc-vpn.org>
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
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.3 2003/07/21 13:14:02 guus Exp $
+ $Id$
*/
#ifndef __TINC_IPV4_H__
#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
#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;
struct in_addr ip_src, ip_dst;
-};
+} __attribute__ ((__packed__));
+#endif
+
+#ifndef IP_OFFMASK
+#define IP_OFFMASK 0x1fff
#endif
#ifndef HAVE_STRUCT_ICMP
#define icmp_radv icmp_dun.id_radv
#define icmp_mask icmp_dun.id_mask
#define icmp_data icmp_dun.id_data
-};
+} __attribute__ ((__packed__));
#endif
#endif /* __TINC_IPV4_H__ */