diff options
author | Coren[m] <Break@Ocean> | 2013-09-27 21:34:13 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-27 21:34:13 +0200 |
commit | f7f670bf7c5a282d56257876394115e462a052d2 (patch) | |
tree | d49d003e882d297fe899a55b6acef6f4839d9715 /toxcore/LAN_discovery.h | |
parent | 483a6cc161447bf94068ffaad463a9c7ee88d30d (diff) |
don't lose globally valid addresses for locally valid ones
Diffstat (limited to 'toxcore/LAN_discovery.h')
-rw-r--r-- | toxcore/LAN_discovery.h | 7 |
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. */ |
42 | int send_LANdiscovery(uint16_t port, Net_Crypto *c); | 42 | int send_LANdiscovery(uint16_t port, Net_Crypto *c); |
43 | 43 | ||
44 | |||
45 | /* Sets up packet handlers. */ | 44 | /* Sets up packet handlers. */ |
46 | void LANdiscovery_init(DHT *dht); | 45 | void 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 | */ | ||
52 | int LAN_ip(IP ip); | ||
48 | 53 | ||
49 | 54 | ||
50 | #endif | 55 | #endif |