diff options
author | irungentoo <irungentoo@gmail.com> | 2015-05-18 20:40:18 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-05-18 20:40:18 -0400 |
commit | 19192920249965fda8931e667bfbffddaeba502c (patch) | |
tree | b14800cde0e68a9cfed1936e4960b7aa23df1fea /toxcore/LAN_discovery.h | |
parent | 40f113c0773d239a107d7085e3f72468e5014f9b (diff) |
If we get the ip/port of a relay on a local ip, assume that our friend
is hosting a relay on his ip.
Diffstat (limited to 'toxcore/LAN_discovery.h')
-rw-r--r-- | toxcore/LAN_discovery.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h index 5243bd93..358bea2f 100644 --- a/toxcore/LAN_discovery.h +++ b/toxcore/LAN_discovery.h | |||
@@ -40,6 +40,9 @@ void LANdiscovery_init(DHT *dht); | |||
40 | /* Clear packet handlers. */ | 40 | /* Clear packet handlers. */ |
41 | void LANdiscovery_kill(DHT *dht); | 41 | void LANdiscovery_kill(DHT *dht); |
42 | 42 | ||
43 | /* Is IP a local ip or not. */ | ||
44 | _Bool Local_ip(IP ip); | ||
45 | |||
43 | /* checks if a given IP isn't routable | 46 | /* checks if a given IP isn't routable |
44 | * | 47 | * |
45 | * return 0 if ip is a LAN ip. | 48 | * return 0 if ip is a LAN ip. |