Skip to main content

Module connection

Module connection 

Source
Expand description

Layer 2 — what users think a network connection is.

A Connection joins a Link, its addresses, its default-route gateway (with L2 status), its resolvers, and any NetworkManager profile into one coherent unit. This is the primary public surface: jip (no args) renders a list of these.

Structs§

AccessPoint
A nearby wifi access point from an NM scan.
Connection
A user-facing network connection: one link plus its interpreted state.
ConnectionId
Stable identifier for a connection. When a NetworkManager profile is present, this is the profile name (e.g. "Wired connection 1"). Otherwise it is the link name.
DhcpLease
Summary of the active DHCP lease on the IPv4 address.
Gateway
The L3 default-route next-hop plus its L2 ARP/ND state. Having both lets the diagnostician say “your route points at 192.168.1.1 but it’s not answering ARP” rather than just “unreachable”.
Profile
Metadata from NetworkManager (or any future connection manager).
WifiSignal
Signal strength and rate information for an associated wifi BSS.

Enums§

Family
Address family.
Medium
What kind of connection this is from the user’s perspective.
VirtualKind
Subtype of a virtual (Medium::Virtual) link.
VpnKind
Subtype of a VPN (Medium::Vpn) link.
WifiSecurity
Security mode of the associated wifi BSS.