From fd8f6c98588649f33cdaea45dd52f1d3150ab3b7 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 18 Aug 2010 20:08:34 +0000 Subject: [PATCH] yes, windows still sucks --- src/transport/gnunet-nat-server-windows.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/transport/gnunet-nat-server-windows.c b/src/transport/gnunet-nat-server-windows.c index 14b7793be..88221879b 100644 --- a/src/transport/gnunet-nat-server-windows.c +++ b/src/transport/gnunet-nat-server-windows.c @@ -89,7 +89,7 @@ typedef int Socket; struct ip_packet { - uint8_t vers_ihl; + /*uint8_t vers_ihl; uint8_t tos; uint16_t pkt_len; uint16_t id; @@ -98,7 +98,18 @@ struct ip_packet uint8_t proto; uint16_t checksum; uint32_t src_ip; - uint32_t dst_ip; + uint32_t dst_ip;*/ + + u_char ver_ihl; // Version (4 bits) + Internet header length (4 bits) + u_char tos; // Type of service + u_short pkt_len; // Total length + u_short id; // Identification + u_short flags_frag_offset; // Flags (3 bits) + Fragment offset (13 bits) + u_char ttl; // Time to live + u_char proto; // Protocol + u_short checksum; // Header checksum + u_long src_ip; // Source address + u_long dst_ip; // Destination address }; struct icmp_packet -- 2.25.1