New feature in v3: cast!

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sun May 12 19:23:29 CEST 2013


>> 	if (Framed-IP-Address =~ "%{sql: ...") {
> 
> Yeah the key here is the type of comparison is done at parse time, not runtime
> there'd need to be an exception for IP addresses such that the format of the
> expansion was 

*determined

> at runtime. It's more code and more effort.

 == is L = R
 >  is L ⊃ R
> 
 <  is L ⊂ R
 >= is L ⊇ R
 <= is L ⊆ R

and Alan has now implemented that, happy days!

Still not sure I see the point of having different internal representations of
IP addresses and netmasks, at least for IPv4, but oh well.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team



More information about the Freeradius-Devel mailing list