From f60b84087bb5354b27e30665263fc5f2bec80eb1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Jan 2012 12:54:55 +0000 Subject: [PATCH] -keep split --- src/include/gnunet_tun_lib.h | 3 ++- src/tun/tun.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index 4e824a9f5..f7f47d9aa 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h @@ -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 /** diff --git a/src/tun/tun.c b/src/tun/tun.c index 3370b98e9..9bec7d24a 100644 --- a/src/tun/tun.c +++ b/src/tun/tun.c @@ -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; -- 2.25.1