<h3>Description</h3>
<p>I use the detailed_ipv4_type func from the ipops module for determine the source IP of the request:</p>
<pre><code># check src ip
if (detailed_ip_type("$si", "$var(src_t)")) {
    xlog("L_INFO","Sourece IP address ($si) is of detailed type: $var(src_t)\n");
    ...
</code></pre>
<p>When $si = 172.22.32.140 detailed_ip_type return PUBLIC, but it is PRIVATE.</p>
<h4>Log Messages</h4>
<pre><code>INFO: <script>: Sourece IP address (172.22.32.140) is of detailed type: PUBLIC
</code></pre>
<h3>Additional Information</h3>
<p>Maybe the reason is here:<br>
modules / ipops / detailed_ip_type.c</p>
<pre><code>(Lucian Balaceanu         2016-09-01 18:39:55 +0300 48)
     { 0xac100000,  "PRIVATE",    0xfffe0000 },  // 172.16/12
</code></pre>
<p>Maybe fffe should be fff0 - it's /15 now.. so 172.16 and 172.17 only match.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1906">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZbHunWV6fq0Mp7KmRfl6FB3kAr_uks5vahJFgaJpZM4cLUQz">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZY9NG1C1WaivfJ_JHDwHldymf8dbks5vahJFgaJpZM4cLUQz.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"IPOPS detailed_ip_type: wrong for PRIVATE IP (#1906)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1906"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1906",
"url": "https://github.com/kamailio/kamailio/issues/1906",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>