ddae57504b
The MAC address reported by `ifconfig ${nic} ether' does not always match the address in the hardware, as reported by the driver during attach. In particular, NICs which are components of a lagg(4) interface all report the same MAC. When attaching, the NIC driver passes the MAC address it read from the hardware as an argument to ether_ifattach(). Keep a second copy of it, and create ioctl(SIOCGHWADDR) to return it. Teach `ifconfig' to report it along with the active MAC address. PR: 194386 Reviewed by: glebius MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D10609 |
||
---|---|---|
.. | ||
tests | ||
af_inet6.c | ||
af_inet.c | ||
af_link.c | ||
af_nd6.c | ||
carp.c | ||
ifbridge.c | ||
ifclone.c | ||
ifconfig.8 | ||
ifconfig.c | ||
ifconfig.h | ||
iffib.c | ||
ifgif.c | ||
ifgre.c | ||
ifgroup.c | ||
ifieee80211.c | ||
ifipsec.c | ||
iflagg.c | ||
ifmac.c | ||
ifmedia.c | ||
ifpfsync.c | ||
ifvlan.c | ||
ifvxlan.c | ||
Makefile | ||
Makefile.depend | ||
sfp.c |