From d6b29f48d161b05ce721c613edaa9b0f1e89091d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Wed, 27 Jul 2011 07:28:15 +0000 Subject: [PATCH] how good to be working on intel --- src/vpn/gnunet-daemon-vpn-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c index 875cfb440..48cb4e6cf 100644 --- a/src/vpn/gnunet-daemon-vpn-helper.c +++ b/src/vpn/gnunet-daemon-vpn-helper.c @@ -327,7 +327,7 @@ message_token (void *cls __attribute__((unused)), s->proto= pkt6->ip6_hdr.nxthdr; if (s->proto == 0x11) { - hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_UDP; + hdr->type = htons(GNUNET_MESSAGE_TYPE_REMOTE_UDP); memcpy (hc + 1, &pkt6_udp->udp_hdr, ntohs (pkt6_udp->udp_hdr.len)); app_type = GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY; @@ -336,7 +336,7 @@ message_token (void *cls __attribute__((unused)), } else if (s->proto == 0x06) { - hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_TCP; + hdr->type = htons(GNUNET_MESSAGE_TYPE_REMOTE_TCP); memcpy (hc + 1, &pkt6_tcp->tcp_hdr, ntohs (pkt6->ip6_hdr.paylgth)); app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; -- 2.25.1