Module: kamailio
Branch: master
Commit: 3848b5286b74894ed162e1aae8c80ee3d703c21f
URL:
https://github.com/kamailio/kamailio/commit/3848b5286b74894ed162e1aae8c80ee…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-03-23T21:43:11+01:00
ipops: Support for 192.0.0.0/29 as NATed source (pull request GH#1488)
---
Modified: src/modules/ipops/detailed_ip_type.c
Modified: src/modules/ipops/detailed_ip_type.h
---
Diff:
https://github.com/kamailio/kamailio/commit/3848b5286b74894ed162e1aae8c80ee…
Patch:
https://github.com/kamailio/kamailio/commit/3848b5286b74894ed162e1aae8c80ee…
---
diff --git a/src/modules/ipops/detailed_ip_type.c b/src/modules/ipops/detailed_ip_type.c
index a37c4aaccd..529645e990 100644
--- a/src/modules/ipops/detailed_ip_type.c
+++ b/src/modules/ipops/detailed_ip_type.c
@@ -41,6 +41,7 @@ static ip4_node IPv4ranges[IPv4RANGES_SIZE] = {
{ 0xc0586300, "6TO4-RELAY", 0xffffff00 }, // 192.88.99.0/24
{ 0xc0000200, "TEST-NET", 0xffffff00 }, // 192.0.2/24
{ 0xc0000000, "RESERVED", 0xffffff00 }, // 192.0.0/24
+ { 0xc0000000, "6TO4-RELAY", 0xfffffff8 }, // 192.0.0.0/29
{ 0xc0a80000, "PRIVATE", 0xffff0000 }, // 192.168/16
{ 0xa9fe0000, "LINK-LOCAL", 0xffff0000 }, // 169.254/16
{ 0xc6120000, "RESERVED", 0xfffe0000 }, // 198.18/15
diff --git a/src/modules/ipops/detailed_ip_type.h b/src/modules/ipops/detailed_ip_type.h
index 35672b9297..36cdce382a 100644
--- a/src/modules/ipops/detailed_ip_type.h
+++ b/src/modules/ipops/detailed_ip_type.h
@@ -25,7 +25,7 @@
#ifndef _IPOPS_DETAILED_IP_TYPE_H
#define _IPOPS_DETAILED_IP_TYPE_H
-#define IPv4RANGES_SIZE 16
+#define IPv4RANGES_SIZE 17
#define IPv6RANGES_SIZE 29
#include <stdint.h>