-keep split
authorChristian Grothoff <christian@grothoff.org>
Mon, 30 Jan 2012 12:54:55 +0000 (12:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 30 Jan 2012 12:54:55 +0000 (12:54 +0000)
src/include/gnunet_tun_lib.h
src/tun/tun.c

index 4e824a9f5fc143bfb5023a026d46e7ff6226cbc7..f7f47d9aad3f83d286ba908d776b783c4884aabc 100644 (file)
@@ -132,7 +132,8 @@ struct GNUNET_TUN_IPv6Header
   unsigned int flow_label:20 GNUNET_PACKED;
 #elif __BYTE_ORDER == __BIG_ENDIAN
   unsigned int version:4 GNUNET_PACKED;
-  unsigned int traffic_class:8 GNUNET_PACKED;
+  unsigned int traffic_class_h:4 GNUNET_PACKED;
+  unsigned int traffic_class_l:4 GNUNET_PACKED;
   unsigned int flow_label:20 GNUNET_PACKED;
 #endif
   /**
index 3370b98e9cad2fffa0f092b886099e4612a4f5a3..9bec7d24a02e9a5361cd4dbde3f19cb431226108 100644 (file)
@@ -84,8 +84,8 @@ GNUNET_TUN_initialize_ipv6_header (struct GNUNET_TUN_IPv6Header *ip,
                                   const struct in6_addr *dst)
 {
   GNUNET_assert (payload_length <= UINT16_MAX - sizeof (struct GNUNET_TUN_IPv6Header));
-  ip->traffic_class_h = 0;
   ip->version = 6;
+  ip->traffic_class_h = 0;
   ip->traffic_class_l = 0;
   ip->flow_label = 0;
   ip->next_header = protocol;