SVNews r318505

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-18 23:41:34 - r318505 by rpokala (rpokala)

Complete list of files affected by revision r318505:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /stable/10/sys/net/if_var.h  

Commit message:

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


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 19 ms, 1 file printed. Current time is 2018-04-20 13:09:08. All times are in UTC/GMT.