низкоуровневый доступ к сетевым устройствам Linux (low-level access to Linux network devices)
Примечание (Note)
SIOCGIFCONF
and the other ioctls that accept or return only
AF_INET
socket addresses are IP-specific and perhaps should
rather be documented in ip(7).
The names of interfaces with no addresses or that don't have the
IFF_RUNNING
flag set can be found via /proc/net/dev.
AF_INET6
IPv6 addresses can be read from /proc/net/if_inet6 or
via rtnetlink(7). Adding a new IPv6 address and deleting an
existing IPv6 address can be done via SIOCSIFADDR
and SIOCDIFADDR
or via rtnetlink(7). Retrieving or changing destination IPv6
addresses of a point-to-point interface is possible only via
rtnetlink(7).