tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Patch to implement SIOCGIFINDEX



On Apr 1,  7:37pm, ty%sarna.org@localhost (Ty Sarna) wrote:
-- Subject: Re: Patch to implement SIOCGIFINDEX

| On Apr 1, 2013, at 7:29 PM, christos%astron.com@localhost (Christos Zoulas) 
wrote:
| >=20
| > I would only implement it for the emulation, because it suffers from =
| TOCTOU.
| 
| I need it for source compatibility with a Linux API. I'm thinking about =
| offering
| an alternative interface to address this, but I'd like to maintain =
| source compatibility
| as much as possible.

Doesn't Linux have getifaddrs? It is simple enough to add, but it is a
poor interface to use since interfaces can be added and deleted dynamically.

christos


Home | Main Index | Thread Index | Old Index