diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-21 11:27:07 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-21 11:27:07 +0000 |
commit | ae8ebff34fd7bb776881b6c99ad70c84d11890e6 (patch) | |
tree | da4bc0bc99ab9af818c94bf81aef8db805189309 /src/transport/plugin_transport_udp.c | |
parent | 4fe41ef7abeeb3a41f15eeeb6ff374dbf0b10b88 (diff) | |
download | gnunet-ae8ebff34fd7bb776881b6c99ad70c84d11890e6.tar.gz gnunet-ae8ebff34fd7bb776881b6c99ad70c84d11890e6.zip |
codesonar changes/fixes
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 434fd9ba1..a8be80dee 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -751,7 +751,7 @@ process_interfaces (void *cls, | |||
751 | v4 = (struct sockaddr_in *) addr; | 751 | v4 = (struct sockaddr_in *) addr; |
752 | if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses == GNUNET_YES)) | 752 | if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses == GNUNET_YES)) |
753 | { | 753 | { |
754 | v4->sin_port = htons (0); /* Indicates to receiver we are behind NAT */ | 754 | v4->sin_port = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE); /* Indicates to receiver we are behind NAT */ |
755 | } | 755 | } |
756 | else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but will advertise NAT and normal addresses */ | 756 | else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but will advertise NAT and normal addresses */ |
757 | { | 757 | { |