/*
ipv4.h -- missing IPv4 related definitions
- Copyright (C) 2004 Ivo Timmermans <ivo@tinc-vpn.org>
- 2004 Guus Sliepen <guus@tinc-vpn.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
#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;
} __attribute__ ((__packed__));
#endif
+#ifndef IP_OFFMASK
+#define IP_OFFMASK 0x1fff
+#endif
+
#ifndef HAVE_STRUCT_ICMP
struct icmp {
uint8_t icmp_type;