RNS::NetInfo
Network interface information module. Provides interface enumeration, address lookup, and name-to-index mapping using POSIX getifaddrs. Ports the functionality of RNS/Interfaces/util/netinfo.py.
Constants
AF_INET = Socket::Family::INET.value
AF_INET6 = Socket::Family::INET6.value
INET6_ADDRSTRLEN = 46
Class methods
Descope a link-local IPv6 address: remove %ifname suffix and embedded scope specifiers (NetBSD/OpenBSD style fe80:XXXX::)
Get addresses for an interface, grouped by address family. Returns Hash mapping AF_INET/AF_INET6 to arrays of AddressInfo.
Get display name for an interface (on POSIX, same as name)