summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-12-05 20:46:50 +0100
committerCoren[m] <Break@Ocean>2013-12-05 20:47:03 +0100
commitc764fc16beb8376912bd9a67f3687d6acfd345d9 (patch)
tree66b11b8b4866e9ff2aab3d7f12d2b81f233e115f /toxcore/LAN_discovery.c
parente6a1754053bdb33ad235ba8a87eb38e828f1a2c1 (diff)
Shared address space for stacking NAT (CGN) is, just like 'regular' private address space, LAN.
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r--toxcore/LAN_discovery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index 0f237cca..eadec9ec 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -176,6 +176,11 @@ int LAN_ip(IP ip)
176 && ip4.uint8[2] != 255) 176 && ip4.uint8[2] != 255)
177 return 0; 177 return 0;
178 178
179 /* RFC 6598: 100.64.0.0 to 100.127.255.255 (100.64.0.0/10)
180 * (shared address space to stack another layer of NAT) */
181 if ((ip4.uint8[0] == 100) && ((ip4.uint8[1] & 0xC0) == 0x40))
182 return 0;
183
179 } else if (ip.family == AF_INET6) { 184 } else if (ip.family == AF_INET6) {
180 185
181 /* autogenerated for each interface: FE80::* (up to FEBF::*) 186 /* autogenerated for each interface: FE80::* (up to FEBF::*)