summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
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/dev/ppbus
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/dev/ppbus')
-rw-r--r--sys/dev/ppbus/if_plip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c
index fc81aec..281baf2 100644
--- a/sys/dev/ppbus/if_plip.c
+++ b/sys/dev/ppbus/if_plip.c
@@ -585,6 +585,8 @@ lp_intr(void *arg)
if (bpf_peers_present(sc->sc_ifp->if_bpf))
lptap(sc->sc_ifp, top);
+ M_SETFIB(top, sc->sc_ifp->if_fib);
+
/* mbuf is free'd on failure. */
netisr_queue(NETISR_IP, top);
ppb_lock(ppbus);
@@ -637,6 +639,8 @@ lp_intr(void *arg)
if (bpf_peers_present(sc->sc_ifp->if_bpf))
lptap(sc->sc_ifp, top);
+ M_SETFIB(top, sc->sc_ifp->if_fib);
+
/* mbuf is free'd on failure. */
netisr_queue(NETISR_IP, top);
ppb_lock(ppbus);
OpenPOWER on IntegriCloud