Expand description
Network interface detection, IP resolution, Wi-Fi, and related helpers.
Structs§
Functions§
- detect_
active_ interface_ and_ local_ ip - Detects the local IP address and active network interface name.
- detect_
networks - Builds the formatted list of network interfaces with IP addresses and RX/TX stats.
- detect_
public_ ip - Fetches the public IP address via an external service (best-effort, 2s timeout).
- detect_
wifi - Detects the connected Wi-Fi network and link parameters.
- format_
bytes - Formats a byte count into human-readable form (KB, MB, GB, etc.)
- lookup_
pci_ vendor - Looks up a PCI vendor name from
/usr/share/hwdata/pci.ids(or fallback paths). - parse_
iw_ link_ output - parse_
netsh_ output - parse_
proc_ net_ route