[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20023 - gnunet/src/exit
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20023 - gnunet/src/exit |
Date: |
Fri, 24 Feb 2012 22:24:05 +0100 |
Author: grothoff
Date: 2012-02-24 22:24:04 +0100 (Fri, 24 Feb 2012)
New Revision: 20023
Modified:
gnunet/src/exit/gnunet-daemon-exit.c
Log:
-fix
Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c 2012-02-24 17:47:23 UTC (rev
20022)
+++ gnunet/src/exit/gnunet-daemon-exit.c 2012-02-24 21:24:04 UTC (rev
20023)
@@ -668,8 +668,9 @@
/* could be TCP or UDP, but both have the ports in the right
place, so that doesn't matter here */
udp = (const struct GNUNET_TUN_UdpHeader *) &ipv4[1];
- source_port = ntohs (udp->source_port);
- destination_port = ntohs (udp->destination_port);
+ /* swap ports, as they are from the original message */
+ destination_port = ntohs (udp->source_port);
+ source_port = ntohs (udp->destination_port);
/* throw away ICMP payload, won't be useful for the other side anyway */
pktlen = sizeof (struct GNUNET_TUN_IcmpHeader);
break;
@@ -701,8 +702,9 @@
/* could be TCP or UDP, but both have the ports in the right
place, so that doesn't matter here */
udp = (const struct GNUNET_TUN_UdpHeader *) &ipv6[1];
- source_port = ntohs (udp->source_port);
- destination_port = ntohs (udp->destination_port);
+ /* swap ports, as they are from the original message */
+ destination_port = ntohs (udp->source_port);
+ source_port = ntohs (udp->destination_port);
/* throw away ICMP payload, won't be useful for the other side anyway */
pktlen = sizeof (struct GNUNET_TUN_IcmpHeader);
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20023 - gnunet/src/exit,
gnunet <=