diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-23 17:19:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-23 17:19:53 +0100 |
commit | 61787bfa37e0ac5998e01d9c4806600033c19c74 (patch) | |
tree | 1ceb843f63aa076682ebfa2de2250dc32ee65004 /src/transport/plugin_transport_udp_broadcasting.c | |
parent | 4a3be482811fe8ed1502fea2c12a8449b560a99e (diff) | |
download | gnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.tar.gz gnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.zip |
rename fest: use new libgnunetnt instead of old libgnunetats logic for network type classification
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index bcb622a46..c802304aa 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -117,7 +117,7 @@ struct MstContext | |||
117 | /** | 117 | /** |
118 | * ATS network type. | 118 | * ATS network type. |
119 | */ | 119 | */ |
120 | enum GNUNET_ATS_Network_Type ats_address_network_type; | 120 | enum GNUNET_NetworkType ats_address_network_type; |
121 | }; | 121 | }; |
122 | 122 | ||
123 | 123 | ||
@@ -186,7 +186,7 @@ udp_broadcast_receive (struct Plugin *plugin, | |||
186 | ssize_t size, | 186 | ssize_t size, |
187 | const union UdpAddress *udp_addr, | 187 | const union UdpAddress *udp_addr, |
188 | size_t udp_addr_len, | 188 | size_t udp_addr_len, |
189 | enum GNUNET_ATS_Network_Type network_type) | 189 | enum GNUNET_NetworkType network_type) |
190 | { | 190 | { |
191 | struct GNUNET_MessageStreamTokenizer *broadcast_mst; | 191 | struct GNUNET_MessageStreamTokenizer *broadcast_mst; |
192 | struct MstContext mc; | 192 | struct MstContext mc; |
@@ -410,7 +410,7 @@ iface_proc (void *cls, | |||
410 | { | 410 | { |
411 | struct Plugin *plugin = cls; | 411 | struct Plugin *plugin = cls; |
412 | struct BroadcastAddress *ba; | 412 | struct BroadcastAddress *ba; |
413 | enum GNUNET_ATS_Network_Type network; | 413 | enum GNUNET_NetworkType network; |
414 | 414 | ||
415 | if (NULL == addr) | 415 | if (NULL == addr) |
416 | return GNUNET_OK; | 416 | return GNUNET_OK; |
@@ -426,7 +426,7 @@ iface_proc (void *cls, | |||
426 | GNUNET_a2s (netmask, addrlen), name, netmask); | 426 | GNUNET_a2s (netmask, addrlen), name, netmask); |
427 | 427 | ||
428 | network = plugin->env->get_address_type (plugin->env->cls, broadcast_addr, addrlen); | 428 | network = plugin->env->get_address_type (plugin->env->cls, broadcast_addr, addrlen); |
429 | if (GNUNET_ATS_NET_LOOPBACK == network) | 429 | if (GNUNET_NT_LOOPBACK == network) |
430 | { | 430 | { |
431 | /* Broadcasting on loopback does not make sense */ | 431 | /* Broadcasting on loopback does not make sense */ |
432 | return GNUNET_YES; | 432 | return GNUNET_YES; |