Normalizing MAC address for database storage?

Kev Pearce at
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...



More information about the Freeradius-Users mailing list