pub const MAX_ROUTERS: u8 = 64;
Expand description

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

According to RFC 2132 section 3.5, the length of the routers 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 routers that can be included in an acquired DHCP configuration.