pub struct Config<'a> {
pub server: ServerInfo,
pub address: Ipv4Cidr,
pub router: Option<Ipv4Address>,
pub dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>,
pub packet: Option<DhcpPacket<&'a [u8]>>,
}
Expand description
IPv4 configuration data provided by the DHCP server.
Fields§
§server: ServerInfo
Information on how to reach the DHCP server that responded with DHCP configuration.
address: Ipv4Cidr
IP address
router: Option<Ipv4Address>
Router address, also known as default gateway. Does not necessarily match the DHCP server’s address.
dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>
DNS servers
packet: Option<DhcpPacket<&'a [u8]>>
Received DHCP packet