The HyperNews Linux KHG Discussion Pages
| Next-in-Thread | Next Response | Previous Response | Next Thread |

Note: Finding net info

Base: Network Buffers And Memory Management
Re: Question Question on network interfaces (Vijay Gupta)
Keywords: network interface
Date: Thu, 30 May 1996 16:12:51 GMT
From: alan.cox@linux.org (Alan Cox)

For general scanning there is both the BSD ioctl (which is a pain as you must guess the largest size), or /proc/net/dev (just cat it). For the state of an interface you use a struct ifreq filled in and do SIOCGIFFLAGS and test IFF_RUNNING and IFF_UP


No Responses

a Response to: "Finding net info"

| Next-in-Thread | Next Response | Previous Response | Next Thread |
| Notification | Copy/Move/Delete | Admin Mode |
| Membership | Help for HyperNews 1.9B5.6 | Frames |