netdev
[Top] [All Lists]

Re: [PATCH] trivial patch for if_indextoname()

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: [PATCH] trivial patch for if_indextoname()
From: David Stevens <dlstevens@xxxxxxxxxx>
Date: Wed, 26 May 2004 15:34:41 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20040526151751.73752ea2.davem@redhat.com>
Sender: netdev-bounce@xxxxxxxxxxx
Dave Miller wrote on 05/26/2004 03:17:51 PM:

> How is the SIOCGIFNAME interface specified in this case?
> (ie. what does BSD do?)  I bet a bunch of stuff will
> break if we change this.

I don't know if it exists in a standard; I'll see if I can
figure out what BSD is doing. The glibc code for
if_indextoname() appears to do the same thing for Linux
as BSD, so if BSD doesn't return ENXIO, it'd be broken
for RFC3493 too. But remapping it in glibc is safer I
suppose.

                                        +-DLS


<Prev in Thread] Current Thread [Next in Thread>