[SR-Users] [permissions] 'address' table and mask priorirty
Uriel Rozenbaum
uriel.rozenbaum at gmail.com
Wed Apr 28 19:16:55 CEST 2010
Iñaki,
Maybe you can try with 2 masks that are not 32.
example:
Entry 1:
- grp = 1
- ip_addr = 9.9.9.128
- mask = 25
Entry 2:
- grp = 2
- ip_addr = 9.9.9.0
- mask = 24
And then verify if the order or id matters. But as per Juha's comment, the
result can be unpredictable.
Maybe we an develop an exported function that can take into account the mask
to get the most exact entry.
Cheers,
Uriel
On Wed, Apr 28, 2010 at 2:13 PM, Juha Heinanen <jh at tutpro.com> wrote:
> Iñaki Baz Castillo writes:
>
> > However after checking the module code it seems that there are just
> > two cases:
> > - IP addresses (mask = 32).
> > - Subnets (mask != 32).
> >
> > So first the source address is always matched against he address hash,
> > and if it doesn't match then it is matched against the subnet hash,
> > but in this last case it is not taken into account any kind of
> > priority based on mask value, am I right?
>
> yes, if address does not match exactly, the any address/mask that
> matches results in success.
>
> -- juha
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100428/c47a8f20/attachment.htm>
More information about the sr-users
mailing list