I know that udev manages devices in
/dev and I expected to find information about available network cards (hardware) or at least network interfaces (software) there.
ifconfig output shows me
/dev/net is empty. Well, almost empty:
$ ls -la /dev/net total 0 drwxr-xr-x 2 root root 60 Dec 13 09:37 . drwxr-xr-x 15 root root 4300 Dec 15 12:12 .. crw-rw-rw- 1 root root 10, 200 Dec 13 09:38 tun
Why there is no info about network interfaces in
I'd really like to avoid executing
ifconfig in my server process.
It is irrelevant to the question, but I expected to find ids ("lo", "eth0") and IP addresses there.