[Dnsmasq-discuss] what is [Discover, Offer...] called?
Geert Stappers
stappers at stappers.nl
Thu Mar 2 20:21:19 UTC 2023
On Tue, Feb 28, 2023 at 04:33:03PM -0800, Eric Fahlgren wrote:
> On Tue, Feb 28, 2023 at 3:53 PM Carl Karsten <carl at nextdayvideo.com> wrote:
>
> > In an effort to name variables and have understandable conversations,
> > I don't know what these things are called:
> >
> > 82 #define DHCPDISCOVER 1
> > 83 #define DHCPOFFER 2
> > 84 #define DHCPREQUEST 3
> > 85 #define DHCPDECLINE 4
> > 86 #define DHCPACK 5
> > 87 #define DHCPNAK 6
> > 88 #define DHCPRELEASE 7
> > 89 #define DHCPINFORM 8
> >
> >
> > https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=src/dhcp-protocol.h#l82
> >
> > Operator? Type? Step?
> >
>
> Those are the DHCP Message Types defined in RFC 2132, see section 9.6 on
> page 26:
>
> https://www.rfc-editor.org/rfc/rfc2132.html
https://www.rfc-editor.org/rfc/rfc2132.html#page-27
https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#DHCP_message_types
And programmers call them "defines".
Groeten
Geert Stappers
--
Silence is hard to parse
More information about the Dnsmasq-discuss
mailing list