Blog literacki, portal erotyczny - seks i humor nie z tej ziemi
The HyperNews Linux KHG Discussion Pages Re: Question on network interfacesForum: Network Buffers And Memory ManagementRe: Question on network interfaces (Vijay Gupta)Keywords: network interfaceDate: Wed, 28 Aug 1996 15:33:15 GMTFrom: Pedro Roque <roque@di.fc.ul.pt>If you want to scan the interface list from kernel space you can do something like: { struct device *dev; for (dev = dev_base; dev != NULL; dev = dev->next) { /* your code here */ /* example */ if (dev->family == AF_INET) { /* this is an inet device */ } if (dev->type == ARPHRD_ETHER) { /* this is ethernet */ } } } ./Pedro. to: "Re: Question on network interfaces"