Mark Riehl wrote:
>
> Can't you use an ioctl() call for this?
I seem to remember I did it in the past combining SIOCGIFCONF to
get the interface list with SIOCGIFADDR to get the addresses for
each interface.
Let me check...
Yeah, there is still a copy of a sample routine that runs over
the interface list to determine whether some address is local
or not in:
ftp://cuatro.esegi.es/pub/linux/catch/getrealdest.c
I am no longer with esegi.es and that might disappear any day.
It used to work for me, might not even compile anymore, YMMV, etc.
Julio
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
- getting ip address from device name Tuan Hoang
- Re: getting ip address from device name nagib hobeica
- Re: getting ip address from device name Pauline Middelink
- Re: getting ip address from device name Bill Brooks
- Re: getting ip address from device name Chuck Gadd
- Re: getting ip address from device na... Pauline Middelink
- Re: getting ip address from devic... Mark Riehl
- Re: getting ip address from ... Julio S�nchez Fern�ndez
- Re: getting ip address from ... Mark H. Wood
- Re: getting ip address f... Donald Becker
- Re: getting ip address from device name Tuan Hoang
- Re: getting ip address from device name Jason Kushmaul
- Re: getting ip address from device name Tuan Hoang
- Re: getting ip address from device na... Gerard Paul Java
- Re: getting ip address from devic... Alan Cox
- Re: getting ip address from ... Gerard Paul Java
- CORRECTION: Re: getting ... Gerard Paul Java
- 2.0.37pre9: Tulip driver scr... Mircea Ciocan
