From: "Javier Govea" <jgovea@magma.ca>
To: linux-kernel@vger.kernel.org
Subject: INTERFACE ADDRESSES
Date: Sat, 4 Oct 2003 16:11:56 -0400 (EDT) [thread overview]
Message-ID: <200310042011.h94KBunf016726@webmail2.magma.ca> (raw)
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
reply other threads:[~2003-10-04 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200310042011.h94KBunf016726@webmail2.magma.ca \
--to=jgovea@magma.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®