#[repr(u8)]pub enum MessageTypes {
Show 19 variants
Discover,
Offer,
Request,
Decline,
Ack,
Nak,
Release,
Inform,
ForceRenew,
LeaseQuery,
LeaseUnassigned,
LeaseUnknown,
LeaseActive,
BulkLeaseQuery,
LeaseQueryDone,
ActiveLeaseQuery,
LeaseQueryStatus,
Tls,
Other(u8),
}Expand description
Variants of option 53 in MessageOptions.
Variants§
Discover
Client broadcast to locate available servers.
Value 1. Defined in RFC-2132.
Offer
Server to client in response to DHCPDISCOVER with offer of configuration parameters.
Value 2. Defined in RFC-2132.
Request
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.
Value 3. Defined in RFC-2132.
Decline
Client to server indicating network address is already in use.
Value 4. Defined in RFC-2132.
Ack
Server to client with configuration parameters, including committed network address.
Value 5. Defined in RFC-2132.
Nak
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
If the selected server is unable to satisfy the DHCPREQUEST message (example: the requested network address has been allocated), the server SHOULD respond with a DHCPNAK message.
Value 6. Defined in RFC-2132.
Release
Client to server relinquishing network address and cancelling remaining lease.
Value 7. Defined in RFC-2132.
Inform
Client to server, asking only for local configuration parameters; client already has externally configured network address.
Value 8. Defined in RFC-2132.
ForceRenew
Server to client which forces the client into the RENEW state.
Value 9. Defined in RFC-3203.
LeaseQuery
Relay agent to server asking for lease information to know the location of an IP endpoint.
Value 10. Defined in RFC-4388.
LeaseUnassigned
Server to relay agent indicating that there is currently no active lease on the resultant IP address but that this DHCP server is authoritative for this IP address.
Value 11. Defined in RFC-4388.
LeaseUnknown
Server to relay agent indicating that the DHCP server has no knowledge of the information specified in the query (e.g., IP address, MAC address, or Client-identifier option).
Value 12. Defined in RFC-4388.
LeaseActive
Server to relay agent which allows the agent to determine the IP endpoint location and the remaining duration of the IP address lease.
Value 13. Defined in RFC-4388.
BulkLeaseQuery
Client to server asking for information concerning existing DHCPv4 IPv4 address bindings managed by the DHCPv4 server.
Value 14. Defined in RFC-6926.
LeaseQueryDone
Server to client after processing the bulk query is complete.
Value 15. Defined in RFC-6926.
ActiveLeaseQuery
Client to server requesting that the server sends updates whenever some activity occurs that changes the binding state.
Value 16. Defined in RFC-7724 which updates RFC-6926.
LeaseQueryStatus
Server to client. May unilaterally terminate a successful ActiveLeaseQuery request, that is currently in
progress, in the event that the server determines that it cannot continue processing it. For example,
when a server is requested to shut down, it should send a LeaseQueryStatus message with a dhcp-status-code
of QueryTerminated and include in the message a base-time. This must be the last message on that connection,
and once the message has been transmitted, the server must close the connection.
Value 17. Defined in RFC-7724 which updates RFC-6926.
Tls
Client to server over a newly created TCP connection to request a TLS connection.
If the server supports TLS connections, it must respond with a Tls message with no dhcp-status-code. If the server does not support TLS connections, it must respond with a Tls message with a dhcp-status-code of TLSConnectionRefused.
Value 18. Defined in RFC-7724 which updates RFC-6926.
Other(u8)
Not implemented
Implementations§
Source§impl MessageTypes
impl MessageTypes
Sourcepub fn extend_into(&self, bytes: &mut Vec<u8>, tag: u8)
pub fn extend_into(&self, bytes: &mut Vec<u8>, tag: u8)
Used, when serializing, to add to the byte buffer.
Trait Implementations§
Source§impl Clone for MessageTypes
impl Clone for MessageTypes
Source§fn clone(&self) -> MessageTypes
fn clone(&self) -> MessageTypes
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more