15 Apr
2015
15 Apr
'15
11:23 a.m.
Thanks for answer! btw, I would like to know if have some way to do that using something like a foreach(). do have idea if is possible?
There's foreach, yes. foreach &Alc-ToServer-Dhcp-Options { update request { Tmp-Octets-0 := "%{Foreach-Variable-0}" } if (&Tmp-Octets-0 && ("%{dhcp_options:&Tmp-Octets-0}" == 0)) { update reply { Reply-Message := 'Failed decoding DHCP options' } invalid } } Might need to add 0x in front of %{Foreach-Variable-0}. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2