/[base]
ViewVC logotype

Revision 318430


Jump to revision: Previous Next
Author: rpokala
Date: Wed May 17 22:29:25 2017 UTC (7 years, 1 month ago)
Changed paths: 6
Log Message:
MFC r318160, 318176: Persistently store NIC's hardware MAC address, and add
a way to retrive it

NOTE: Due to restructuring, the merges didn't apply cleanly; the resulting
change is almost identical to what went into stable/11, but in some cases in
different locations.

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


Changed paths

Path Details
Directorystable/10/ modified , props changed
Directorystable/10/sbin/ifconfig/af_link.c modified , text changed
Directorystable/10/sys/net/if.c modified , text changed
Directorystable/10/sys/net/if_ethersubr.c modified , text changed
Directorystable/10/sys/net/if_var.h modified , text changed
Directorystable/10/sys/sys/sockio.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27