yes, windows still sucks
authorNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 20:08:34 +0000 (20:08 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 20:08:34 +0000 (20:08 +0000)
src/transport/gnunet-nat-server-windows.c

index 14b7793be6fa21a6807c9e3557c1e282d23044f4..88221879b77aff7a63268ec3427c635fd1e4ef44 100644 (file)
@@ -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