Module networkd

Module networkd 

Source
Expand description

§networkd module

All structs, enums and methods specific to systemd-networkd. Enumerations were copied from https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h

Structs§

AddressStateIter
An iterator over the variants of AddressState
AdminStateIter
An iterator over the variants of AdminState
BoolStateIter
An iterator over the variants of BoolState
CarrierStateIter
An iterator over the variants of CarrierState
InterfaceState
Per-interface state collected from systemd-networkd state files in /run/systemd/netif/links/
NetworkdState
Aggregated systemd-networkd state: per-interface details and total managed interface count
OnlineStateIter
An iterator over the variants of OnlineState
OperStateIter
An iterator over the variants of OperState

Enums§

AddressState
Address configuration state of a networkd-managed interface. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
AdminState
Administrative state of a networkd-managed interface (networkd’s own management lifecycle). Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
BoolState
Enumeration of a true (yes) / false (no) options - e.g. required for online
CarrierState
Physical carrier (link layer) state of a networkd-managed interface. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
MonitordNetworkdError
OnlineState
Overall online state of the system as determined by systemd-networkd-wait-online logic. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
OperState
Operational state of a networkd-managed interface combining carrier and address information. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h

Constants§

NETWORKD_STATE_FILES

Functions§

parse_interface_state_files
Parse interface state files in directory supplied
parse_interface_stats
Parse a networkd state file contents + convert int ID to name via DBUS
update_networkd_stats
Async wrapper than can update networkd stats when passed a locked struct