summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ether.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-11-07 15:14:10 +0000
committerglebius <glebius@FreeBSD.org>2014-11-07 15:14:10 +0000
commit6306f795601112ca48fd1c75441b82ff98ca8b57 (patch)
tree8477b249e14f24c5617bf5ae2aa9e42c46dac3f6 /sys/netgraph/ng_ether.c
parentc075106d393fdbfbb58d3c45ee72d62ec2e23245 (diff)
downloadFreeBSD-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/netgraph/ng_ether.c')
-rw-r--r--sys/netgraph/ng_ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c
index 55f491a..fcde08c 100644
--- a/sys/netgraph/ng_ether.c
+++ b/sys/netgraph/ng_ether.c
@@ -74,7 +74,7 @@
MODULE_VERSION(ng_ether, 1);
-#define IFP2NG(ifp) (IFP2AC((ifp))->ac_netgraph)
+#define IFP2NG(ifp) ((ifp)->if_l2com)
/* Per-node private data */
struct private {
OpenPOWER on IntegriCloud