X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fipv4.h;h=dcac0bf8be61180be87a3a6591a3e2afc657a926;hp=4be432f7331ce3a5816f5dbc919cc66c6bd8dda5;hb=2c7ce7de12d16cb407fd40224b6cb802528ee942;hpb=c1e8152f4fe5e4557784d8411e50006d461b8786 diff --git a/lib/ipv4.h b/lib/ipv4.h index 4be432f7..dcac0bf8 100644 --- a/lib/ipv4.h +++ b/lib/ipv4.h @@ -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.3 2003/07/21 13:14:02 guus Exp $ + $Id: ipv4.h,v 1.1.2.5 2003/12/22 11:05:23 guus Exp $ */ #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 @@ -68,7 +72,7 @@ struct ip { uint8_t ip_p; uint16_t ip_sum; struct in_addr ip_src, ip_dst; -}; +} __attribute__ ((__packed__)); #endif #ifndef HAVE_STRUCT_ICMP @@ -126,7 +130,7 @@ 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__ */