From 2fbed5b4c55ca92edbd436d4d0fa0a35506855c3 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 10 Jan 2018 16:44:49 +0000 Subject: Move Networking_Core struct into the .c file. To make it an abstract type everywhere except in network.c. --- toxcore/LAN_discovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/LAN_discovery.c') 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) ip_port.port = port; /* IPv6 multicast */ - if (dht->net->family == TOX_AF_INET6) { + if (net_family(dht->net) == TOX_AF_INET6) { ip_port.ip = broadcast_ip(TOX_AF_INET6, TOX_AF_INET6); if (ip_isset(&ip_port.ip)) { @@ -387,7 +387,7 @@ int send_LANdiscovery(uint16_t port, DHT *dht) } /* IPv4 broadcast (has to be IPv4-in-IPv6 mapping if socket is TOX_AF_INET6 */ - ip_port.ip = broadcast_ip(dht->net->family, TOX_AF_INET); + ip_port.ip = broadcast_ip(net_family(dht->net), TOX_AF_INET); if (ip_isset(&ip_port.ip)) { if (sendpacket(dht->net, ip_port, data, 1 + CRYPTO_PUBLIC_KEY_SIZE)) { -- cgit v1.2.3