[sr-dev] git:master:1b6332fe: ipops: Fixed mask for 172.16.0.0/12 network (#1907)

Henning Westerholt henningw at users.noreply.github.com
Wed Mar 27 08:43:47 CET 2019


Module: kamailio
Branch: master
Commit: 1b6332fe565d97695a1eb84172e6f19f26381101
URL: https://github.com/kamailio/kamailio/commit/1b6332fe565d97695a1eb84172e6f19f26381101

Author: sergey-safarov <s.safarov at gmail.com>
Committer: Henning Westerholt <henningw at users.noreply.github.com>
Date: 2019-03-27T08:43:42+01:00

ipops: Fixed mask for 172.16.0.0/12 network (#1907)

---

Modified: src/modules/ipops/detailed_ip_type.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1b6332fe565d97695a1eb84172e6f19f26381101.diff
Patch: https://github.com/kamailio/kamailio/commit/1b6332fe565d97695a1eb84172e6f19f26381101.patch

---

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




More information about the sr-dev mailing list