[farsight2/master] The 172.16.x.x range is /12, not /10.. oops
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:58 PST 2008
---
transmitters/rawudp/fs-interfaces.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transmitters/rawudp/fs-interfaces.c b/transmitters/rawudp/fs-interfaces.c
index 46982a6..3e68ffc 100644
--- a/transmitters/rawudp/fs-interfaces.c
+++ b/transmitters/rawudp/fs-interfaces.c
@@ -148,11 +148,11 @@ farsight_is_private_ip (const struct in_addr in)
return TRUE;
/* 172.16.0.0 - 172.31.255.255 = 172.16.0.0/10 */
- if (in.s_addr >> 22 == 0x2B0)
+ if (in.s_addr >> 20 == 0xAC1)
return TRUE;
/* 192.168.x.x/16 */
- if (in.s_addr >> 16 == 0xc0A8)
+ if (in.s_addr >> 16 == 0xC0A8)
return TRUE;
/* 169.254.x.x/16 (for APIPA) */
--
1.5.6.5
More information about the farsight-commits
mailing list