On Sat, Jan 08, 2005 at 11:34:57PM +0100, Ivan Voras wrote: > I use it in this code: > > /* get interface name by index */ ...
Please consider using if_nameindex() or if_nametoindex(), which will retrieve the getifaddrs() list for you and considerably simplify the code fragment you've provided. These are specified by RFC 2553 and are used in many places within the XORP open source router. Regards, BMS
pgpnKvYB8cZ9Y.pgp
Description: PGP signature