Boris Dragovic wrote: >hi, >what is the best way to obtain a list of localy registered IP addresses >eg. i have a box with two eth cards and each of them has an ip address >assigned with possibly some aliases, how to find out these addresses form >kernel ofcourse. > >thnx >lynx > This is how I do it: 1. dev_base points to a linked list of struct net_device 2. each net_device has the field in_dev, which points to struct in_device 3. struct in_device's field ifa_list points to a linked list of IP addresses of that device Bye H. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/