diff options
author | rpokala <rpokala@FreeBSD.org> | 2017-05-18 23:41:34 +0000 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-19 07:19:23 -0300 |
commit | 76a12c4e67a51cec8ed50890775ce759a5bdeb70 (patch) | |
tree | 225676e16284d3925ad88f04a8c6b30f4b9cf7d7 /etc/rc.netstart | |
parent | c437e581acfeef575da493b8b6811ae842f789ca (diff) | |
download | FreeBSD-src-76a12c4e67a51cec8ed50890775ce759a5bdeb70.zip FreeBSD-src-76a12c4e67a51cec8ed50890775ce759a5bdeb70.tar.gz |
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
(cherry picked from commit 2f103d239c07e4f88b9852f3b8689f100d7a31d0)
Diffstat (limited to 'etc/rc.netstart')
0 files changed, 0 insertions, 0 deletions