summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authorrpokala <rpokala@FreeBSD.org>2017-05-17 22:29:25 +0000
committerrpokala <rpokala@FreeBSD.org>2017-05-17 22:29:25 +0000
commit2ce46e31d62424593e08c3853efe8c1e9283aba2 (patch)
treeb2d309a8e52a1ac150a4313fc6caf15b78014f9a /sbin/ping
parent41d2a3bce7ead4e7867724598cfae85b83ec0d21 (diff)
downloadFreeBSD-src-2ce46e31d62424593e08c3853efe8c1e9283aba2.zip
FreeBSD-src-2ce46e31d62424593e08c3853efe8c1e9283aba2.tar.gz
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
Diffstat (limited to 'sbin/ping')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud