pub const MAX_DNS_SERVERS: u8 = 64;
Expand description

The maximum possible number of DNS servers that can be included in an acquired DHCP configuration.

According to RFC 2132 section 3.8, the length of the DNS server list in bytes is represented in the protocol by an 8-bit unsigned integer: “[variable-length options have] a length octet following the tag octet. The value of the length octet does not include the two octets specifying the tag and length.” 2^8 = 256, which divided by 4 bytes gives us 64 as an upper bound on the maximum possible number of DNS servers that can be included in an acquired DHCP configuration.