--enable-developer

Bjørn Mork bjorn at mork.no
Mon Nov 5 10:17:05 CET 2012


Arran Cudbard-Bell <a.cudbardb at freeradius.org> writes:

>>> 
>>> Yes. Though it looks like ERX-Dhcp-Options is defined wrongly as a string in the vendor's dictionary, i'll go fix that...
>> 
>> Heh. So it works as is, with no additional hacks.
>
> If anyone wants the octally escaped string to hex code I put it up here:
> https://gist.github.com/4013951

Nice.  But you do know that C isn't exactly the best language for string
manipulation? Alternative version:

  perl -e 'print "0x", unpack("H*",  eval "qq#".shift."#")'

OK, yours is readable :-)


Bjørn


More information about the Freeradius-Devel mailing list