Skip to main content

Module link

Module link 

Source
Expand description

Layer 1 — thin typed wrappers over what the kernel exposes via netlink/sysfs.

These are the primitives returned by InventoryRaw. Users only see them via jip raw *.

Structs§

Addr
A single address bound to a link.
Link
A kernel-visible network interface (link).
LinkFlags
IFF_* style flags as reported by the kernel. Stored as strings to avoid a brittle enum; query via helper methods.
MacAddr
Six-byte link-layer address. Displayed as aa:bb:cc:dd:ee:ff.
MacAddrParseError
Neighbor
A neighbor table entry (ARP/ND).
Route
A kernel routing table entry.
Socket
A listening or established socket.

Enums§

AddrScope
Scope of an IP address, as reported by the kernel (RT_SCOPE_*).
L4Proto
Layer 4 transport protocol.
Lifetime
valid_lft / preferred_lft as reported by the kernel. forever is u32::MAX (4294967295) in ip -j; backends lift that to Lifetime::Forever.
LinkKind
The type of network link, as inferred from the kernel’s layer-2 type and interface name.
LinkMode
Kernel link mode (IFLA_LINKMODE). Dormant means the link waits for an upper layer (e.g. 802.1X authentication) before coming up.
NeighState
ARP/ND neighbor cache state (NUD_* flags from the kernel).
OperState
RFC 2863 operational state as reported by the kernel via IF_OPER_*.
RouteDst
Routing table destination: either the default route or a specific prefix.
RouteScope
Scope of a routing table entry (RT_SCOPE_*).
TcpState
Kernel TCP state names (also used for UDP: Unconn is the UDP “listen”).