Re: inconsistency between SIOCGIFCONF and SIOCGIFNAME

From: Ulrich Drepper
Date: Tue Jun 29 2004 - 14:19:02 EST


Stephen Hemminger wrote:

> The bridge utilities depends on being able to do if_indextoname and
> if_nametoindex for interfaces that aren't active to IP. Other non-IP
> usage probably does as well.

This is not changed by DaveM's patch. All the patch does is to cause
SIOCGIFCONF to report all interfaces SIOCGIFINDEX knows about as well.
So now if_indextoname() succeeds only if_indexname() also returns the
interface name, making the three interfaces consistent.

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/