pub struct NetworkInterface<'a> {
pub name: &'a str,
pub is_operational: bool,
pub off_premise_ipv4: Option<bool>,
pub off_premise_ipv6: Option<bool>,
pub hardware_address: &'a [u8],
pub ipv4_addresses: &'a [[u8; 4]],
pub ipv6_addresses: &'a [[u8; 16]],
pub interface_type: InterfaceType,
}Expand description
One entry of NetworkInterfaces (§11.12.5.6).
The IP addresses are borrowed slices of wire-order octets — four each for IPv4, sixteen for IPv6 — because a device already holds them somewhere and this cluster is a view.
Fields§
§name: &'a str“a human-readable (displayable) name for the network interface, that is different from all other interfaces”, at most 32 octets.
is_operational: boolWhether the node is advertising operationally on it and can receive on it.
off_premise_ipv4: Option<bool>Whether off-premise services are reachable over IPv4; None writes TLV null, which
§11.12.5.6 requires when “the Node does not use such services or does not know”.
off_premise_ipv6: Option<bool>The same for IPv6.
hardware_address: &'a [u8]“the current link-layer address for a 802.3 or IEEE 802.11-2020 network interface … the current extended MAC address for a 802.15.4 interface”, in wire byte order.
ipv4_addresses: &'a [[u8; 4]]Up to four IPv4 addresses, four octets each.
ipv6_addresses: &'a [[u8; 16]]Up to eight unicast IPv6 addresses. “This list SHALL include the Node’s link-local address … SHALL NOT include any multicast group addresses.”
interface_type: InterfaceTypeWhat kind of interface it is.