SVNews r318504

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

2017-05-18 23:41:18 - r318504 by rpokala (rpokala)

Complete list of files affected by revision r318504:

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

  History   Contents   Diff   MODIFY   /stable/11/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. 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


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

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