Enum edge_dhcp::MessageType
source · #[repr(u8)]pub enum MessageType {
Discover = 1,
Offer = 2,
Request = 3,
Decline = 4,
Ack = 5,
Nak = 6,
Release = 7,
Inform = 8,
}
Expand description
DHCP Message Type.
§Standards
The semantics of the various DHCP message types are described in RFC 2131 (see Table 2). Their numeric values are described in Section 9.6 of RFC 2132, which begins:
This option is used to convey the type of the DHCP message. The code for this option is 53, and its length is 1.
Variants§
Discover = 1
Client broadcast to locate available servers.
Offer = 2
Server to client in response to DHCPDISCOVER with offer of configuration parameters.
Request = 3
Client message to servers either (a) requesting offered parameters from one server and implicitly declining offers from all others, (b) confirming correctness of previously allocated address after, e.g., system reboot, or (c) extending the lease on a particular network address.
Decline = 4
Client to server indicating network address is already in use.
Ack = 5
Server to client with configuration parameters, including committed network address.
Nak = 6
Server to client indicating client’s notion of network address is incorrect (e.g., client has moved to new subnet) or client’s lease as expired.
Release = 7
Client to server relinquishing network address and cancelling remaining lease.
Inform = 8
Client to server, asking only for local configuration parameters; client already has externally configured network address.
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageType
impl Debug for MessageType
source§impl Display for MessageType
impl Display for MessageType
source§impl PartialEq for MessageType
impl PartialEq for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
self
and other
values to be equal, and is used
by ==
.