summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.h
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-27 21:34:13 +0200
committerCoren[m] <Break@Ocean>2013-09-27 21:34:13 +0200
commitf7f670bf7c5a282d56257876394115e462a052d2 (patch)
treed49d003e882d297fe899a55b6acef6f4839d9715 /toxcore/LAN_discovery.h
parent483a6cc161447bf94068ffaad463a9c7ee88d30d (diff)
don't lose globally valid addresses for locally valid ones
Diffstat (limited to 'toxcore/LAN_discovery.h')
-rw-r--r--toxcore/LAN_discovery.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h
index 3e9d9de5..9d19114d 100644
--- a/toxcore/LAN_discovery.h
+++ b/toxcore/LAN_discovery.h
@@ -41,10 +41,15 @@
41/* Send a LAN discovery pcaket to the broadcast address with port port. */ 41/* Send a LAN discovery pcaket to the broadcast address with port port. */
42int send_LANdiscovery(uint16_t port, Net_Crypto *c); 42int send_LANdiscovery(uint16_t port, Net_Crypto *c);
43 43
44
45/* Sets up packet handlers. */ 44/* Sets up packet handlers. */
46void LANdiscovery_init(DHT *dht); 45void LANdiscovery_init(DHT *dht);
47 46
47/* checks if a given IP isn't routable
48 *
49 * return 0 if ip is a LAN ip.
50 * return -1 if it is not.
51 */
52int LAN_ip(IP ip);
48 53
49 54
50#endif 55#endif