diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-20 17:19:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-20 17:19:03 +0000 |
commit | 73fb0146652b3ee6a346779e58a44849fcc2cea9 (patch) | |
tree | 668e53a2a38dd21625d4a5a18de093e597c50f2f /src | |
parent | dfc14c78063c52aaee7301b04fd7c691d8a2df09 (diff) | |
download | gnunet-73fb0146652b3ee6a346779e58a44849fcc2cea9.tar.gz gnunet-73fb0146652b3ee6a346779e58a44849fcc2cea9.zip |
set inbound flag which should fix #3719 (assuming diagnostic is correct) at the expense of having two session objects for what is pretty much the same address; however, as the inbound one is not really validated and might not work due to NAT, this actually does make sense
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 4db28b45c..cd42b07a1 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -2511,7 +2511,7 @@ process_udp_message (struct Plugin *plugin, | |||
2511 | PLUGIN_NAME, | 2511 | PLUGIN_NAME, |
2512 | udp_addr, | 2512 | udp_addr, |
2513 | udp_addr_len, | 2513 | udp_addr_len, |
2514 | GNUNET_HELLO_ADDRESS_INFO_NONE); | 2514 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
2515 | if (NULL == | 2515 | if (NULL == |
2516 | (s = udp_plugin_lookup_session (plugin, | 2516 | (s = udp_plugin_lookup_session (plugin, |
2517 | address))) | 2517 | address))) |
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index c0e629b83..3a25e921b 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1481,7 +1481,7 @@ process_data (void *cls, | |||
1481 | PLUGIN_NAME, | 1481 | PLUGIN_NAME, |
1482 | &mas->endpoint->wlan_addr, | 1482 | &mas->endpoint->wlan_addr, |
1483 | sizeof (mas->endpoint->wlan_addr), | 1483 | sizeof (mas->endpoint->wlan_addr), |
1484 | GNUNET_HELLO_ADDRESS_INFO_NONE); | 1484 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
1485 | mas->session = lookup_session (mas->endpoint, | 1485 | mas->session = lookup_session (mas->endpoint, |
1486 | &tmpsource); | 1486 | &tmpsource); |
1487 | if (NULL == mas->session) | 1487 | if (NULL == mas->session) |
@@ -1609,7 +1609,7 @@ process_data (void *cls, | |||
1609 | PLUGIN_NAME, | 1609 | PLUGIN_NAME, |
1610 | &mas->endpoint->wlan_addr, | 1610 | &mas->endpoint->wlan_addr, |
1611 | sizeof (struct WlanAddress), | 1611 | sizeof (struct WlanAddress), |
1612 | GNUNET_HELLO_ADDRESS_INFO_NONE); | 1612 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
1613 | plugin->env->session_start (plugin->env->cls, | 1613 | plugin->env->session_start (plugin->env->cls, |
1614 | address, | 1614 | address, |
1615 | mas->session, | 1615 | mas->session, |