[Toybox] Entering the home stretch on ifconfig...

Bastian Bittorf bittorf at bluebottle.com
Thu Jun 6 23:11:50 PDT 2013


* Rob Landley <rob at landley.net> [07.06.2013 07:57]:
> It looks like show_iface() enumerates /proc/net/dev and then calls
> readconf() to do ioctl() based enumeration. The /proc one gives us RX
> bytes and such, the ioctl gives us a "virtual interface" (ala lo:0 I

dont use the deprecated one, but /sys/class/net/
or even "better" via netlink.

bye, bastian



More information about the Toybox mailing list