diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-07-27 07:28:15 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-07-27 07:28:15 +0000 |
commit | d6b29f48d161b05ce721c613edaa9b0f1e89091d (patch) | |
tree | 92f36eb86c412b60fff863f340824cc10640d372 /src/vpn | |
parent | 0f15f36dd081829f6466b29e6088f3ce379595e2 (diff) | |
download | gnunet-d6b29f48d161b05ce721c613edaa9b0f1e89091d.tar.gz gnunet-d6b29f48d161b05ce721c613edaa9b0f1e89091d.zip |
how good to be working on intel
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn-helper.c | 4 |
1 files 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)), | |||
327 | s->proto= pkt6->ip6_hdr.nxthdr; | 327 | s->proto= pkt6->ip6_hdr.nxthdr; |
328 | if (s->proto == 0x11) | 328 | if (s->proto == 0x11) |
329 | { | 329 | { |
330 | hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_UDP; | 330 | hdr->type = htons(GNUNET_MESSAGE_TYPE_REMOTE_UDP); |
331 | memcpy (hc + 1, &pkt6_udp->udp_hdr, | 331 | memcpy (hc + 1, &pkt6_udp->udp_hdr, |
332 | ntohs (pkt6_udp->udp_hdr.len)); | 332 | ntohs (pkt6_udp->udp_hdr.len)); |
333 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY; | 333 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY; |
@@ -336,7 +336,7 @@ message_token (void *cls __attribute__((unused)), | |||
336 | } | 336 | } |
337 | else if (s->proto == 0x06) | 337 | else if (s->proto == 0x06) |
338 | { | 338 | { |
339 | hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_TCP; | 339 | hdr->type = htons(GNUNET_MESSAGE_TYPE_REMOTE_TCP); |
340 | memcpy (hc + 1, &pkt6_tcp->tcp_hdr, | 340 | memcpy (hc + 1, &pkt6_tcp->tcp_hdr, |
341 | ntohs (pkt6->ip6_hdr.paylgth)); | 341 | ntohs (pkt6->ip6_hdr.paylgth)); |
342 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; | 342 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; |