aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-11-07 15:14:10 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-11-07 15:14:10 +0000
commit833e8dc5ab711a9485790d950801e32798d55558 (patch)
tree8477b249e14f24c5617bf5ae2aa9e42c46dac3f6 /sys/net/if.c
parentb6e1ad3a3a2f414cc4a67ffcdb92c47e444cdc9f (diff)
downloadsrc-833e8dc5ab711a9485790d950801e32798d55558.tar.gz
src-833e8dc5ab711a9485790d950801e32798d55558.zip
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.
Notes
Notes: svn path=/head/; revision=274231
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 980fab1c6772..5b606ebecd9d 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -2136,7 +2136,7 @@ do_link_state_change(void *arg, int pending)
(*vlan_link_state_p)(ifp);
if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) &&
- IFP2AC(ifp)->ac_netgraph != NULL)
+ ifp->if_l2com != NULL)
(*ng_ether_link_state_p)(ifp, link_state);
if (ifp->if_carp)
(*carp_linkstate_p)(ifp);