RFC: interface description

Andrey V. Elsukov bu7cher at yandex.ru
Fri Aug 14 06:05:16 UTC 2009


Xin LI wrote:
> The only question I have would be, that is it possible to uniquely
> identify a NIC without assistance from kernel?  For instance, one can
> change an interface from being called "em0" to "eth0" and from "bge0" to
> "em0".  It's easy to track this information through ifconfig(8) with a
> callback, clean up the file upon restart, but we can not prevent other
> programs from calling IOCSIFNAME on the interface.  Any idea for this?

What about using interface index as a key(see if_nameindex(3))?

-- 
WBR, Andrey V. Elsukov


More information about the freebsd-net mailing list