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
      (Alex Duzsardi)


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

Message: 1
Date: Thu, 14 Apr 2022 15:47:00 +0300
From: Alex Duzsardi <alex.duzsa...@prodigy-it-solutions.com>
To: dhcp-users@lists.isc.org
Cc: Alex Duzsardi <alex.duzsa...@prodigy-it-solutions.com>,
        dh...@thehobsons.co.uk
Subject: Re: Documentation clarification about unsigned/signed integer
Message-ID:
        <CAAa91wqB37KtYAeo54X9OEVXu5iFc76ndDRyFH=0du8jwgx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thank you, i wasn't aware of that.
So basically the server just decodes bytes in whatever format they might be
provided be it integer, hex, text and it expects the decoded data to make
sense for the type of the option set, integer in the case of option code 93
Is this behavior the same for other option types
(string,ip-address,text,flag) ?

Guessing providing an integer for a string type option doesn't really make
sense , will the server ignore the option in this case or just crash or log
an error ?  (i'll test it on a lab server later)

Thank you for the clarification Simon!

On Wed, 13 Apr 2022 22:04:48 +0100, Simon Hobson <dh...@thehobsons.co.uk>
> wrote:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20220414/a1d03142/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
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


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

End of dhcp-users Digest, Vol 162, Issue 6
******************************************

Reply via email to