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]

Reply via email to