Matching IP addresses

Stefan Winter stefan.winter at restena.lu
Wed Dec 6 15:56:42 CET 2017


Hi,

>> if (NAS-IP-Address < "192.168.0.32/27") {
>>    ...
>> }
> 
> Thanks, much neater.

I find the lack of mathematical correctness of this operator disturbing.
The RHS is a set, and the LHS is either an element contained in this set
or not.

If only the config files were UTF-8, then the operator to use would be
"ELEMENT OF", U+2208, ∈.

Stefan



-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
2, avenue de l'Université
L-4365 Esch-sur-Alzette

Tel: +352 424409 1
Fax: +352 422473

PGP key updated to 4096 Bit RSA - I will encrypt all mails if the
recipient's key is known to me

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20171206/b59c7320/attachment.sig>


More information about the Freeradius-Users mailing list