summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-07-03 16:08:38 +0000
committerbz <bz@FreeBSD.org>2011-07-03 16:08:38 +0000
commit300a95bf76e162113e6631c5538072e8a1aec2bb (patch)
tree5b26fb6f45285f3368af628d56f5ce11128abe81 /sys/net/if_ethersubr.c
parentcf260e73d64c6f9645f9836a1a5e0f93061ae882 (diff)
downloadFreeBSD-src-300a95bf76e162113e6631c5538072e8a1aec2bb.zip
FreeBSD-src-300a95bf76e162113e6631c5538072e8a1aec2bb.tar.gz
Tag mbufs of all incoming frames or packets with the interface's FIB
setting (either default or if supported as set by SIOCSIFFIB, e.g. from ifconfig). Submitted by: Alexander V. Chernikov (melifaro ipfw.ru) Reviewed by: julian MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index be90f5a..aa8113b 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -692,6 +692,8 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m)
m_adj(m, ETHER_VLAN_ENCAP_LEN);
}
+ M_SETFIB(m, ifp->if_fib);
+
/* Allow ng_ether(4) to claim this frame. */
if (IFP2AC(ifp)->ac_netgraph != NULL) {
KASSERT(ng_ether_input_p != NULL,
OpenPOWER on IntegriCloud