From: Philipp Tölke Date: Wed, 27 Jul 2011 07:28:15 +0000 (+0000) Subject: how good to be working on intel X-Git-Tag: initial-import-from-subversion-38251~17618 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6b29f48d161b05ce721c613edaa9b0f1e89091d;p=oweals%2Fgnunet.git how good to be working on intel --- 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;