Spoon <root@127.0.0.1> wrote:
>Spoon wrote:
>
>> Is there a /proc node that would return the IPv4 address(es) given to an
>> interface? (Where does ifconfig find the info?)
>>
>> How does "ip address show dev eth1" work? (I'll take a look at the
>> source code tomorrow.)
>
>Anyone?
If you want C code to do it, it is trivial.
Got to google's Usenet archives and search on these three words
'struct ifr floyd', and you will find several articles where I've
posted a demo program to do that.
If you don't find it, ask and I'll post it again.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)
(E-Mail Removed)