[SR-Users] Potential ip_addr_match_net bug

Fred Posner fred at palner.com
Tue Jun 30 20:44:54 CEST 2015


On 06/29/2015 07:21 PM, Kyle Kurz wrote:
> I'm using allow_address function of the permissions module and I'm
> seeing strange behavior with network masks not divisible by 8. I have
> 172.16.0.0/12 <http://172.16.0.0/12> in my address table and Kamailio is
> marking packets from 172.56.16.232 as being part of that local subnet.
> If I change the subnet to 172.16.0.0/16 <http://172.16.0.0/16>, I no
> longer have an issue.
> 
> I know there was a bug several years ago related to this
> (http://git.kamailio.org/gitlist/index.php/sip-router/commit/0ead7ab31bf0df6eb313dc3f9a4979c2a45cce8b),
> but that code is very different, so I'm wondering if a regression has
> crept in? I'm using Kam 4.1.6.
> 
> Thanks,
> Kyle
> 

Kyle,

How are you using allow_address?

--fred



More information about the sr-users mailing list