summaryrefslogtreecommitdiffstats
path: root/sys/net/if_fddisubr.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2004-04-18 01:15:32 +0000
committerluigi <luigi@FreeBSD.org>2004-04-18 01:15:32 +0000
commit9cffdfc5cab4dbd32d0b1fe590e1d003682a5359 (patch)
tree58bf4f0462dd776e1be5a5e165421ceb64f27085 /sys/net/if_fddisubr.c
parentb84b33b31dbab93dce7ee1430680b1b94cad517c (diff)
downloadFreeBSD-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_fddisubr.c')
-rw-r--r--sys/net/if_fddisubr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c
index 1003208..2e89840 100644
--- a/sys/net/if_fddisubr.c
+++ b/sys/net/if_fddisubr.c
@@ -98,7 +98,6 @@ static int fddi_output(struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
static void fddi_input(struct ifnet *ifp, struct mbuf *m);
-#define IFP2AC(IFP) ((struct arpcom *)IFP)
#define senderr(e) do { error = (e); goto bad; } while (0)
/*
OpenPOWER on IntegriCloud