aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_arp.h
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2004-04-18 01:15:32 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2004-04-18 01:15:32 +0000
commit212b6d524452fa4368adc716f36071267a8a763b (patch)
tree58bf4f0462dd776e1be5a5e165421ceb64f27085 /sys/net/if_arp.h
parentd3770a0c1533df56ef437807b2f0f2ef24f0990f (diff)
Notes
Diffstat (limited to 'sys/net/if_arp.h')
-rw-r--r--sys/net/if_arp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_arp.h b/sys/net/if_arp.h
index 9afea76f29a2..6cc3ce9ab187 100644
--- a/sys/net/if_arp.h
+++ b/sys/net/if_arp.h
@@ -100,6 +100,8 @@ struct arpreq {
* Structure shared between the ethernet driver modules and
* the address resolution code. For example, each ec_softc or il_softc
* begins with this structure.
+ * The code is written so that each *_softc _must_ begin with a
+ * struct arpcom, which in turn _must_ begin with a struct ifnet.
*/
struct arpcom {
/*
@@ -107,9 +109,11 @@ struct arpcom {
*/
struct ifnet ac_if; /* network-visible interface */
u_char ac_enaddr[6]; /* ethernet hardware address */
- int ac_multicnt; /* length of ac_multiaddrs list */
+ int now_unused; /* XXX was length of ac_multiaddrs list */
void *ac_netgraph; /* ng_ether(4) netgraph node info */
};
+#define IFP2AC(ifp) ((struct arpcom *)(ifp))
+
#endif
#endif /* !_NET_IF_ARP_H_ */