[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Patch to implement SIOCGIFINDEX
On Apr 22, 2013, at 9:47 AM, Christos Zoulas <christos%astron.com@localhost>
> In article <5174AC05.3030504%chocot.jp@localhost>,
> Masaru OKI <masaru+oki%chocot.jp@localhost> wrote:
>> FreeBSD already has SIOCGIFINDEX, and if_nametoindex(3) uses it.
>> it is useful, i think.
>> (2013/04/02 8:13), Ty Sarna wrote:
>>> The following short patch implements SIOCGIFINDEX as found on Linux
>>> (and maybe elsewhere), which translates an interface name to its index.
> Someone else asked for it too, so I guess it is kind of popular...
Might want a SIOCGIFNAME too since you could use it to get an interface's
name by its index (you can open an interface by if<index> where is the
decimal index; like if1, if29, etc.).
Main Index |
Thread Index |