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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"