]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Persistently store NIC's hardware MAC address, and add a way to retrive it
authorrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 May 2017 23:41:34 +0000 (23:41 +0000)
committerrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 May 2017 23:41:34 +0000 (23:41 +0000)
commit9ede4379897968e400c678fcc4323532db6b1380
tree21375dcf78d8c1f9c9df55ad23dc18ddea9b83d8
parentff5c0c0fd2b78b071f323b3285f8519a991b708b
Persistently store NIC's hardware MAC address, and add a way to retrive it

jhb pointed out that (struct ifnet) is part of the network driver KBI, and
thus the offsets of internal fields must not change. Therefore, move the new
"if_hw_addr" field to the end, and consume one of the "if_pspare"s; that's
what they're there for. Because netmap on stable/10 uses "if_pspare[0]", the
new field replaces the *last* element of that array; that way,
offsetof(if_pspare) is unchanged compared to before r318430.

PR: 194386
Reviewed by: jhb
Pointyhat to: rpokala
Sponsored by: Panasas

git-svn-id: svn://svn.freebsd.org/base/stable/10@318505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_var.h