HomeFreeBSD

Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.

Description

Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.
If the syscall fails, fall back on the old method as a compatability
measure.

Details

Provenance
Jonathan Lemon <jlemon@FreeBSD.org>Authored on Oct 17 2001, 8:08 PM
Parents
rGde5934508a18: Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.
Branches
Unknown
Tags
Unknown

Event Timeline