Send dhcp-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Documentation bug with dhcp-client-identifier and leading
      zero byte (Jonah Petri)


----------------------------------------------------------------------

Message: 1
Date: Tue, 26 May 2026 15:38:36 -0400
From: Jonah Petri <[email protected]>
To: [email protected]
Subject: Documentation bug with dhcp-client-identifier and leading
        zero byte
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hello,

I spent quite a while chasing what turned out to be a documentation 
issue with the correct use of dhcp-client-identifier.? I wanted to write 
to the list in the hopes that someone in the future could be saved from 
the trouble I went through.T

The documentation correctly states that DHCP clients will prepend a zero 
byte to a ASCII dhcp client identifier.? However, the example given in 
dhcp-options.5 for how to deal with this is wrong and will not work.

The string parser in the config file grammar, implemented in conflex.c 
read_string(), expects 3 digits of octal after the backslash escape, and 
it will ignore any backslash escapes with less than this number of octal 
digits.? So the example "\0foo" will NOT be read as having a leading 
zero byte.? It will instead be read as identical to "foo".? If you want 
to have a leading zero byte, you must spell the string as "\000foo".? 
The alternative is to spell out the entire thing in colon-separated 
bytes, like 00:66:6F:6F.? There appears to be hex escape parsing as well 
but since that's not documented anywhere I saw, I won't mention it further.

I would also ask that the docs be updated to reflect the correct usage, 
but I know that the project is EOL and there might be no capacity to do so.

All the best,

Jonah

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20260526/0971b778/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 199, Issue 1
******************************************

Reply via email to