Obtaining and interface's current ip
Tue, 30 Apr 2002 14:29:01 +0200
On Mon, Apr 29, 2002 at 02:09:39PM -0500, Glover George wrote:
> Hi, I'm working on a little module here and was wondering what the BEST
> way to get an interface's current ip address by using it's name (i.e.,
> eth0) is.
This is not related to netfilter, and especially not to netfilter development.
Try the firstname.lastname@example.org or email@example.com mailinglists.
If you want to do it portable, you should do it the same way like 'ifconfig',
which is by ioctl's.
Live long and prosper
- Harald Welte / firstname.lastname@example.org http://www.gnumonks.org/
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)