-building IPv4 TCP reply messages for TUN
[oweals/gnunet.git] / src / vpn / gnunet-vpn-packet.h
index 19b2c8d7b4a811af31050e966a642486f5fb3c81..835ffb8a3627647228566f81aa43323fc40d4c01 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "platform.h"
 #include "gnunet_common.h"
-#include "gnunet-dns-parser.h"
+#include "gnunet_dnsparser_lib.h"
 
 GNUNET_NETWORK_STRUCT_BEGIN
 
@@ -23,8 +23,8 @@ struct ip6_hdr
   unsigned paylgth:16 GNUNET_PACKED;
   unsigned nxthdr:8 GNUNET_PACKED;
   unsigned hoplmt:8 GNUNET_PACKED;
-  unsigned char sadr[16];
-  unsigned char dadr[16];
+  struct in6_addr sadr;
+  struct in6_addr dadr;
 };
 
 struct ip_hdr
@@ -43,8 +43,8 @@ struct ip_hdr
   unsigned proto:8 GNUNET_PACKED;
   unsigned chks:16 GNUNET_PACKED;
 
-  uint32_t sadr GNUNET_PACKED;
-  uint32_t dadr GNUNET_PACKED;
+  struct in_addr sadr GNUNET_PACKED;
+  struct in_addr dadr GNUNET_PACKED;
 };
 
 #define TCP_FLAG_SYN 2