string data expressions (was Re: using option 82 to assign a static ip-address)

perl-list perl-list at network1.net
Mon Dec 17 15:03:45 UTC 2012


So the best solution is to convert everything to binary? 

And, even tho the inbound DHCP packet contains actual ASCII text (from some manufacturers) DHCP is smart enough to what convert the ASCII to binary before comparison? 

So my config would contain this: 56:4C:41:4E:20:31:20:50:6F:72:66:20:34 and the packet actually contain s ASCII: "VLAN 1 Port 4" and this would match? 
> So to match something like VLAN 1 Port 4, you could use the string
> "VLAN 1
> Port 4" or encode each character in hex
> 56:4C:41:4E:20:31:20:50:6F:72:66:20:34

> Try man ascii to give you conversion tables.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20121217/bec68a40/attachment.html>


More information about the dhcp-users mailing list