how good to be working on intel
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 27 Jul 2011 07:28:15 +0000 (07:28 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 27 Jul 2011 07:28:15 +0000 (07:28 +0000)
src/vpn/gnunet-daemon-vpn-helper.c

index 875cfb4402b2e5a3268589190bffd07c4d71abbb..48cb4e6cf4baf1f96f551181cd85f55cdfa50354 100644 (file)
@@ -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;