]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Persistently store NIC's hardware MAC address, and add a way to retrive it
authorrpokala <rpokala@FreeBSD.org>
Thu, 18 May 2017 23:41:18 +0000 (23:41 +0000)
committerrpokala <rpokala@FreeBSD.org>
Thu, 18 May 2017 23:41:18 +0000 (23:41 +0000)
commit53168a58b2d5e27ea918b00e0398e6629c91864c
tree1836350de8b7c2a31c208c6484f67172e00696eb
parent42cafeda4717f09449885ffb2cfd9cb56fd8b274
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. The new field replaces the *last* element of that
array; that way, offsetof(if_pspare) and offsetof(if_ispare) are unchanged
compared to before r318397.

PR: 194386
Reviewed by: jhb
Pointyhat to: rpokala
Sponsored by: Panasas
sys/net/if_var.h