Matching a prefix in huntgroups file

Arran Cudbard-Bell a.cudbardb at
Wed Nov 9 16:19:35 CET 2016

> On Nov 7, 2016, at 12:08 PM, Alan DeKok <aland at> wrote:
>> On Nov 7, 2016, at 11:38 AM, Phil Mayers <p.mayers at> wrote:
>> On 07/11/16 16:03, Alan DeKok wrote:
>>> if (&NAS-IP-Address < {
>>> Which checks that the IP is "within" the network.  ASCII doesn't have
>>> a "set contains" character, so "<" is the best we can do.
>> FWIW, Postgres uses "<<" for "is contained within" or "<<=" for "contained within or equals" and conversely for >> and >>=. Newer versions have && for "contains or contained by".
>  "<<" is also used for bit shifting.  There is no perfect answer here. :(
>  I'd love to use a sideways "U", which is the mathematical symbol for "set contains".  But that's not easy in the ASCII character set.

Yeah we tried a bunch of different variations, I don't think postgresql's operators are any less ambiguous than >= > < <=.

I'd support allowing the proper UTF8 chars too, and actually displaying those when conditions are printed in debug output.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the Freeradius-Users mailing list