Normalizing MAC address for database storage?

Kev Pearce email.me at kevp.com
Mon Sep 28 09:23:49 CEST 2015


> Maybe even a more minimalistic format would be better for MAC address:
> all lowercase, no separators: aabbccddeeff. A simple regex could
> discard anything that's not 0123456789abcdef, and then convert to
> lowercase.

I'd do this but of course you need tolower first before the regex...

Kev/.

> 


More information about the Freeradius-Users mailing list