diff options
author | luigi <luigi@FreeBSD.org> | 2004-04-18 01:15:32 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2004-04-18 01:15:32 +0000 |
commit | 9cffdfc5cab4dbd32d0b1fe590e1d003682a5359 (patch) | |
tree | 58bf4f0462dd776e1be5a5e165421ceb64f27085 /sys/net/if_stf.c | |
parent | b84b33b31dbab93dce7ee1430680b1b94cad517c (diff) | |
download | FreeBSD-src-9cffdfc5cab4dbd32d0b1fe590e1d003682a5359.zip FreeBSD-src-9cffdfc5cab4dbd32d0b1fe590e1d003682a5359.tar.gz |
+ rename and document an unused field in struct arpcom (field is still
there so there are no ABI changes);
+ replace 5 redefinitions of the IPF2AC macro with one in if_arp.h
Eventually (but before freezing the ABI) we need to get rid of
struct arpcom (initially with the help of some smart #defines
to avoid having to touch each and every driver, see below).
Apart from the struct ifnet, struct arpcom now only stores a copy
of the MAC address (ac_enaddr, but we already have another copy in
the struct ifnet -- if_addrhead), and a netgraph-specific field
which is _always_ accessed through the ifp, so it might well go
into the struct ifnet too (where, besides, there is already an entry
for AF_NETGRAPH data...)
Too bad ac_enaddr is widely referenced by all drivers. But
this can be fixed as follows:
#define ac_enaddr ac_if.the_original_ac_enaddr_in_struct_ifnet
(note that the right hand side would likely be a pointer rather than
the base address of an array.)
Diffstat (limited to 'sys/net/if_stf.c')
0 files changed, 0 insertions, 0 deletions