Matching a prefix in huntgroups file

Alan DeKok aland at
Mon Nov 7 18:08:51 CET 2016

> 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. 

  Alan DeKok.

More information about the Freeradius-Users mailing list