diff options
author | glebius <glebius@FreeBSD.org> | 2014-11-07 15:14:10 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-11-07 15:14:10 +0000 |
commit | 6306f795601112ca48fd1c75441b82ff98ca8b57 (patch) | |
tree | 8477b249e14f24c5617bf5ae2aa9e42c46dac3f6 /sys/net/if_arp.h | |
parent | c075106d393fdbfbb58d3c45ee72d62ec2e23245 (diff) | |
download | FreeBSD-src-6306f795601112ca48fd1c75441b82ff98ca8b57.zip FreeBSD-src-6306f795601112ca48fd1c75441b82ff98ca8b57.tar.gz |
Remove struct arpcom. It is unused by most interface types, that allocate
it, except Ethernet, where it carried ng_ether(4) pointer.
For now carry the pointer in if_l2com directly.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/net/if_arp.h')
-rw-r--r-- | sys/net/if_arp.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/net/if_arp.h b/sys/net/if_arp.h index 2dd8c32..7d141f3 100644 --- a/sys/net/if_arp.h +++ b/sys/net/if_arp.h @@ -97,20 +97,6 @@ struct arpreq { #define ATF_PUBL 0x08 /* publish entry (respond for other host) */ #define ATF_USETRAILERS 0x10 /* has requested trailers */ -#ifdef _KERNEL -/* - * Structure shared between the ethernet driver modules and - * the address resolution code. - */ -struct arpcom { - struct ifnet *ac_ifp; /* network-visible interface */ - void *ac_netgraph; /* ng_ether(4) netgraph node info */ -}; -#define IFP2AC(ifp) ((struct arpcom *)(ifp->if_l2com)) -#define AC2IFP(ac) ((ac)->ac_ifp) - -#endif /* _KERNEL */ - struct arpstat { /* Normal things that happen: */ uint64_t txrequests; /* # of ARP requests sent by this host. */ |