summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-10 16:44:49 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-11 11:59:14 +0000
commit2fbed5b4c55ca92edbd436d4d0fa0a35506855c3 (patch)
treef9cee9b3eb13d47789ec0340a59ae105dce0a07a /toxcore/LAN_discovery.c
parentc84daff5413c45fb9e87fa5dbb7ae228564cfd2f (diff)
Move Networking_Core struct into the .c file.
To make it an abstract type everywhere except in network.c.
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r--toxcore/LAN_discovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index b95e401d..66cbe496 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -376,7 +376,7 @@ int send_LANdiscovery(uint16_t port, DHT *dht)
376 ip_port.port = port; 376 ip_port.port = port;
377 377
378 /* IPv6 multicast */ 378 /* IPv6 multicast */
379 if (dht->net->family == TOX_AF_INET6) { 379 if (net_family(dht->net) == TOX_AF_INET6) {
380 ip_port.ip = broadcast_ip(TOX_AF_INET6, TOX_AF_INET6); 380 ip_port.ip = broadcast_ip(TOX_AF_INET6, TOX_AF_INET6);
381 381
382 if (ip_isset(&ip_port.ip)) { 382 if (ip_isset(&ip_port.ip)) {
@@ -387,7 +387,7 @@ int send_LANdiscovery(uint16_t port, DHT *dht)
387 } 387 }
388 388
389 /* IPv4 broadcast (has to be IPv4-in-IPv6 mapping if socket is TOX_AF_INET6 */ 389 /* IPv4 broadcast (has to be IPv4-in-IPv6 mapping if socket is TOX_AF_INET6 */
390 ip_port.ip = broadcast_ip(dht->net->family, TOX_AF_INET); 390 ip_port.ip = broadcast_ip(net_family(dht->net), TOX_AF_INET);
391 391
392 if (ip_isset(&ip_port.ip)) { 392 if (ip_isset(&ip_port.ip)) {
393 if (sendpacket(dht->net, ip_port, data, 1 + CRYPTO_PUBLIC_KEY_SIZE)) { 393 if (sendpacket(dht->net, ip_port, data, 1 + CRYPTO_PUBLIC_KEY_SIZE)) {