hex is not working in 4.0.x

Chinnapaiyan, Nagamani Nagamani.Chinnapaiyan at viasat.com
Mon Dec 16 11:37:40 CET 2019


hex conversion of mac address used to work previously,

(0)        EXPAND 0x%{hex:%{DHCP-Client-Hardware-Address}}

(0)        EXPAND %{DHCP-Client-Hardware-Address}

(0)          --> 00:a0:bc:6c:7e:4e

(0)        EXPAND %{hex:%{DHCP-Client-Hardware-Address}}

(0)              (%{hex:00:a0:bc:6c:7e:4e})

(0)          --> 00a0bc6c7e4e

(0)           --> 0x00a0bc6c7e4e





Now it is broken,

(0)        EXPAND 0x%{hex:%{DHCP-Client-Hardware-Address}}

(0)        EXPAND %{DHCP-Client-Hardware-Address}

(0)          --> 00:a0:bc:6c:7d:3a

(0)        EXPAND %{hex:%{DHCP-Client-Hardware-Address}}

(0)              (%{hex:00:a0:bc:6c:7d:3a})

(0)          --> 000000000000

(0)           --> 0x000000000000


Regards,
Nagamani Chinnapaiyan



More information about the Freeradius-Users mailing list