lkml.org 
[lkml]   [2003]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectINTERFACE ADDRESSES
Hi,

I want to get the ip addresses of every interface in my host, is there any function within
the kernel that already does this??? I know there is a function, called ip_dev_find(u32
addr) in fib_frontend.c, where I can pass the ip address of an intefarce and it will
return me a net_device*. I want a function that does exactely the opposite. Is there such
a function in the kernel?? if so, can somebody point me to file???

If there is no such a function, then I can write it myself, but I need some help for that.
I don't know where the ip addresses of the interfaces are stored, is there something like
a linked list or table where each node or entry has a device and its ip address??? where
can i look for the ip addresses? and the devices???

Thanx in advance to all...
Xavier

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.019 / U:1.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site