Comparing attributes containing MAC addresses

paul.moser at bt.com paul.moser at bt.com
Wed Apr 20 12:46:31 UTC 2022


Is there a simple built in way to compare attributes that are MAC addresses for equivalence?

I need to be able to compare 2 attributes in a packet to see if they are the same, unfortunately the network kit vendor does not format MAC addresses consistently across all attributes (eg User-Name = aa.bb.cc.dd.ee.ff whilst  Calling-Station-Id = aabb:ccdd:eeff)  so a simple string comparison does not work.

Thanks,

Paul


More information about the Freeradius-Users mailing list