Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
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 dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: Documentation clarification about unsigned/signed integer options (Simon Hobson) ---------------------------------------------------------------------- Message: 1 Date: Wed, 13 Apr 2022 22:04:48 +0100 From: Simon Hobson <dh...@thehobsons.co.uk> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Documentation clarification about unsigned/signed integer options Message-ID: <51891d41-84e9-4b7b-9df4-833aa8acf...@thehobsons.co.uk> Content-Type: text/plain; charset=utf-8 On 6 April 2022 14:05:03 BST, Alex Duzsardi <alex.duzsa...@prodigy-it-solutions.com> wrote: >Hi, >I'm using PXE for some testing and i configured option 93 on my isc dhcp >server to capture the architecture of the clients, like > >option arch code 93 = unsigned integer 16; > > >now i saw a lot of ways to match the architecture on the interwebs and this >is confusing for me because i can't find any documentation about cases >where you would use > >if option arch = 00:00 > >or > >if option arch = 0x0000 > >or > >if option arch = 0 > >Can somebody please clarify this for me? > >Thank you! The server really doesn't care - those examples are equivalent. It really comes down to what makes the most sense to the humans involved. For something that's "just a number" then the decimal version makes sense. If it's something more readable in hex then use one of the hex formats. You could also use a string. E.g. "AA" is (if I remember my codes after a long day) the same as 0x4141, or 41:41, or 16705. Simon ------------------------------ 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 dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 162, Issue 5 ******************************************