freebsd-nq/sbin/ifconfig
Ravi Pokala ddae57504b Persistently store NIC's hardware MAC address, and add a way to retrive it
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
2017-05-10 22:13:47 +00:00
..
tests
af_inet6.c Various Coverity fixes in ifconfig(8) 2017-05-03 17:21:01 +00:00
af_inet.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
af_link.c Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
af_nd6.c ifconfig displays ND6_IFF_NO_DAD as "IGNORELOOP" 2017-05-03 01:46:39 +00:00
carp.c
ifbridge.c [ifconfig] fix a memory leak! 2017-02-20 03:12:46 +00:00
ifclone.c Various Coverity fixes in ifconfig(8) 2017-05-03 17:21:01 +00:00
ifconfig.8 Document in ifconfig(8) that gre(4) accepts tunnel commands 2017-04-29 15:35:30 +00:00
ifconfig.c Unbreak ifconfig for mlx4en(4) after r317755 2017-05-03 19:53:01 +00:00
ifconfig.h
iffib.c
ifgif.c
ifgre.c
ifgroup.c
ifieee80211.c [ifconfig] add some comments around missing net80211 VHT configuration. 2017-03-31 22:05:10 +00:00
ifipsec.c Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
iflagg.c Various Coverity fixes in ifconfig(8) 2017-05-03 17:21:01 +00:00
ifmac.c
ifmedia.c Fix a comment that's been wrong ever since this file was imported in 1997 2017-05-01 01:42:26 +00:00
ifpfsync.c Various Coverity fixes in ifconfig(8) 2017-05-03 17:21:01 +00:00
ifvlan.c
ifvxlan.c
Makefile Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
Makefile.depend
sfp.c