Module: kamailio
Branch: 5.1
Commit: de2364784f5c7b257ff796a83d12f3bb2d130308
URL:
https://github.com/kamailio/kamailio/commit/de2364784f5c7b257ff796a83d12f3b…
Author: sergey-safarov <s.safarov(a)gmail.com>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-03-27T08:45:10+01:00
ipops: Fixed mask for 172.16.0.0/12 network (#1907)
(cherry picked from commit 1b6332fe565d97695a1eb84172e6f19f26381101)
---
Modified: src/modules/ipops/detailed_ip_type.c
---
Diff:
https://github.com/kamailio/kamailio/commit/de2364784f5c7b257ff796a83d12f3b…
Patch:
https://github.com/kamailio/kamailio/commit/de2364784f5c7b257ff796a83d12f3b…
---
diff --git a/src/modules/ipops/detailed_ip_type.c b/src/modules/ipops/detailed_ip_type.c
index 529645e990..90fbbee203 100644
--- a/src/modules/ipops/detailed_ip_type.c
+++ b/src/modules/ipops/detailed_ip_type.c
@@ -45,7 +45,7 @@ static ip4_node IPv4ranges[IPv4RANGES_SIZE] = {
{ 0xc0a80000, "PRIVATE", 0xffff0000 }, // 192.168/16
{ 0xa9fe0000, "LINK-LOCAL", 0xffff0000 }, // 169.254/16
{ 0xc6120000, "RESERVED", 0xfffe0000 }, // 198.18/15
- { 0xac100000, "PRIVATE", 0xfffe0000 }, // 172.16/12
+ { 0xac100000, "PRIVATE", 0xfff00000 }, // 172.16/12
{ 0x64400000, "SHARED", 0xffc00000 }, // 100.64/10
{ 0x7f000000, "LOOPBACK", 0xff000000 }, // 127.0/8
{ 0x0a000000, "PRIVATE", 0xff000000 }, // 10/8