<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Pasan,</tt><tt><br>
</tt><tt><br>
</tt><tt>19 is 16 + 2 +</tt><tt> 1 (as tests) :</tt><tt><br>
</tt><tt></tt><tt><br>
</tt><tt><span class="emphasis"><em>1</em></span></tt><tt> - Contact
header field is searched for occurrence of RFC1918 / RFC6598
addresses.</tt><tt><span class="emphasis"><em></em></span></tt><tt><br>
</tt><tt><span class="emphasis"><em>2</em></span></tt><tt> - the
"received" test is used: address in Via is compared against source
IP address of signaling</tt><tt><span class="emphasis"><em></em></span></tt><tt><br>
</tt><tt><span class="emphasis"><em>16</em></span></tt><tt> - test
if the source port is different from the port in Via </tt><tt><br>
</tt><tt><br>
2 and 16 is checking IP versus IP, so they are not affected by v4
versus v6.<br>
<br>
On test 1 I see no checks on v4 or v6 - it simply checks the IP
(as raw bytes) against the know ipv4 private classes.<br>
<br>
Could you try to remove the test 1 (use 18) and see if the test
still returns true ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 04/05/2018 06:58 AM, Pasan Meemaduma
via Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1713269242.1875244.1522900690133@mail.yahoo.com">
<div style="font-family:Helvetica Neue, Helvetica, Arial,
sans-serif;font-size:16px;">
<div>Hi Guys,</div>
<div><br>
</div>
<div>Are nathelper module functions ipv6 safe ? I'm getting true
for nat test with following call for an ipv6 address which is
a globally unique unicast address.</div>
<div><br>
</div>
<div><span>nat_uac_test("19")</span></div>
<div><span><br>
</span><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>