opnsense-src/sys/net
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
..
altq
bpf.c
bpf.h
bpf_buffer.c
bpf_buffer.h
bpf_filter.c
bpf_jitter.c
bpf_jitter.h
bpf_zerocopy.c
bpf_zerocopy.h
bpfdesc.h
bridgestp.c
bridgestp.h
dlt.h
ethernet.h
fddi.h
firewire.h
flowtable.c
flowtable.h
ieee8023ad_lacp.c Add several new media types to if_media.h 2017-05-10 18:33:40 +00:00
ieee8023ad_lacp.h
ieee_oui.h
if.c Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
if.h
if_arc.h
if_arcsubr.c
if_arp.h
if_bridge.c
if_bridgevar.h
if_clone.c
if_clone.h
if_dead.c
if_debug.c
if_disc.c
if_dl.h
if_edsc.c
if_enc.c
if_enc.h
if_epair.c
if_ethersubr.c Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
if_fddisubr.c
if_fwsubr.c
if_gif.c
if_gif.h
if_gre.c
if_gre.h
if_ipsec.c
if_ipsec.h
if_iso88025subr.c
if_lagg.c Relax r317696 locking to not drain taskqueue under the lock. 2017-05-05 16:51:53 +00:00
if_lagg.h Introduce sleepable locks into if_lagg. 2017-05-02 19:09:11 +00:00
if_llatbl.c
if_llatbl.h
if_llc.h
if_loop.c
if_me.c
if_media.c
if_media.h Add several new media types to if_media.h 2017-05-10 18:33:40 +00:00
if_mib.c
if_mib.h
if_pflog.h
if_pfsync.h
if_sppp.h
if_spppfr.c
if_spppsubr.c
if_stf.c
if_tap.c
if_tap.h
if_tapvar.h
if_tun.c
if_tun.h
if_types.h
if_var.h Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
if_vlan.c
if_vlan_var.h
if_vxlan.c
if_vxlan.h
ifdi_if.m
iflib.c Adjust a comment. 2017-05-09 08:29:55 +00:00
iflib.h
ifq.h
iso88025.h
mp_ring.c
mp_ring.h
mppc.h
mppcc.c
mppcd.c
netisr.c
netisr.h
netisr_internal.h
netmap.h
netmap_user.h
netmap_virt.h
paravirt.h
pfil.c
pfil.h
pfkeyv2.h
pfvar.h
ppp_defs.h
radix.c
radix.h
radix_mpath.c
radix_mpath.h
raw_cb.c
raw_cb.h
raw_usrreq.c
rndis.h
route.c
route.h
route_var.h
rss_config.c
rss_config.h
rtsock.c
sff8436.h
sff8472.h
slcompress.c
slcompress.h
toeplitz.c
toeplitz.h
vnet.c
vnet.h