projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe41ef
)
codesonar changes/fixes
author
Nathan S. Evans
<evans@in.tum.de>
Mon, 21 Jun 2010 11:27:07 +0000
(11:27 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Mon, 21 Jun 2010 11:27:07 +0000
(11:27 +0000)
src/transport/plugin_transport_udp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index 434fd9ba19e412f27e97c6c81b97fc135bab24f3..a8be80deedc6b945108eafe7858c4f5c5c11a4fc 100644
(file)
--- a/
src/transport/plugin_transport_udp.c
+++ b/
src/transport/plugin_transport_udp.c
@@
-751,7
+751,7
@@
process_interfaces (void *cls,
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 (
GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE
); /* 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 */
{