summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp_broadcasting.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-25 23:33:56 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-25 23:33:56 +0000
commit858539f346bb72c1313c0f9bf0ef20d829664ae5 (patch)
tree827bfdb87d9254a60c4454ae81f754c98370f33e /src/transport/plugin_transport_udp_broadcasting.c
parenta31bab668764d3dcce73e40a4ac77b5bf84eb723 (diff)
-udp broadcasts should not be flagged as inbound
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index 3ef9ecaaf..814328f48 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -160,7 +160,9 @@ broadcast_ipv6_mst_cb (void *cls, void *client,
hello = (struct GNUNET_MessageHeader *) &msg[1];
address = GNUNET_HELLO_address_allocate (&msg->sender, PLUGIN_NAME,
- (const char *) &mc->addr, sizeof (mc->addr), GNUNET_HELLO_ADDRESS_INFO_INBOUND);
+ (const char *) &mc->addr,
+ sizeof (mc->addr),
+ GNUNET_HELLO_ADDRESS_INFO_NONE);
plugin->env->receive (plugin->env->cls, address, NULL, hello);
plugin->env->update_address_metrics (plugin->env->cls, address,
NULL, &atsi, 1);
@@ -202,8 +204,11 @@ broadcast_ipv4_mst_cb (void *cls, void *client,
GNUNET_break (ntohl(mc->ats_address_network_type) != GNUNET_ATS_NET_UNSPECIFIED);
hello = (struct GNUNET_MessageHeader *) &msg[1];
- address = GNUNET_HELLO_address_allocate (&msg->sender, PLUGIN_NAME,
- (const char *) &mc->addr, sizeof (mc->addr), GNUNET_HELLO_ADDRESS_INFO_INBOUND);
+ address = GNUNET_HELLO_address_allocate (&msg->sender,
+ PLUGIN_NAME,
+ (const char *) &mc->addr,
+ sizeof (mc->addr),
+ GNUNET_HELLO_ADDRESS_INFO_NONE);
plugin->env->receive (plugin->env->cls, address, NULL, hello);
plugin->env->update_address_metrics (plugin->env->cls, address,
NULL, &atsi, 1);