[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11890 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11890 - gnunet/src/transport |
Date: |
Wed, 23 Jun 2010 10:34:49 +0200 |
Author: nevans
Date: 2010-06-23 10:34:49 +0200 (Wed, 23 Jun 2010)
New Revision: 11890
Modified:
gnunet/src/transport/plugin_transport_udp.c
Log:
define nat port
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-06-23 08:31:26 UTC (rev
11889)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-06-23 08:34:49 UTC (rev
11890)
@@ -61,6 +61,8 @@
*/
#define UDP_DIRECT_DISTANCE 1
+#define DEFAULT_NAT_PORT 0
+
/**
* How long until we give up on transmitting the welcome message?
*/
@@ -751,7 +753,7 @@
v4 = (struct sockaddr_in *) addr;
if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses ==
GNUNET_YES))
{
- v4->sin_port = htons (0); /* Indicates to receiver we are behind NAT
*/
+ v4->sin_port = htons (DEFAULT_NAT_PORT); /* Indicates to receiver we
are behind NAT */
}
else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but
will advertise NAT and normal addresses */
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11890 - gnunet/src/transport,
gnunet <=