Re:Understanding the working of X11 from the ground up (2017)
by jlokier on Sunday September 22, 2019 @09:20PM
(#21045196)
They actually are accessible as a file interface:
ls /sys/class/net
You can't read and write packets via the interface, but there are configuration knobs and statistics you can access.
I think it's quite messy and inconsistent that some network interface attributes are only in sysfs, and others are only accessible via AF_NETLINK (usually via the "ip" tool). But it's there.
I think it's quite messy and inconsistent that some network interface attributes are only in sysfs, and others are only accessible via AF_NETLINK (usually via the "ip" tool). But it's there.