[SR-Users] Potential ip_addr_match_net bug

Kyle Kurz kkurz at digium.com
Tue Jun 30 01:21:53 CEST 2015


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
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, 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 Kurz*
Digium, Inc. · Senior Software Engineer
9115 Brown Deer Rd · San Diego, CA 92121 · US
direct +1 858.537.1166
Check us out at: http://digium.com · http://asterisk.org
<http://www.asterisk.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150629/4197c096/attachment.html>


More information about the sr-users mailing list