summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-04-23 09:56:17 +0000
committerae <ae@FreeBSD.org>2014-04-23 09:56:17 +0000
commit8057942ba8ed9b21af24960f0a246d99cc80a3ec (patch)
tree04d68bf46164308a53a57401ea16cb0ade3bf41c /sys/netpfil
parentd9a1a7c7fbbd9fd7c624053cd0096e4d24376caa (diff)
downloadFreeBSD-src-8057942ba8ed9b21af24960f0a246d99cc80a3ec.zip
FreeBSD-src-8057942ba8ed9b21af24960f0a246d99cc80a3ec.tar.gz
MFC r264540:
Set oif only for outgoing packets. PR: 188543
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/ip_fw_pfil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_pfil.c b/sys/netpfil/ipfw/ip_fw_pfil.c
index 99517ed..2bcd1dd 100644
--- a/sys/netpfil/ipfw/ip_fw_pfil.c
+++ b/sys/netpfil/ipfw/ip_fw_pfil.c
@@ -334,7 +334,7 @@ ipfw_check_frame(void *arg, struct mbuf **m0, struct ifnet *dst, int dir,
m_adj(m, ETHER_HDR_LEN); /* strip ethernet header */
args.m = m; /* the packet we are looking at */
- args.oif = dst; /* destination, if any */
+ args.oif = dir == PFIL_OUT ? dst: NULL; /* destination, if any */
args.next_hop = NULL; /* we do not support forward yet */
args.next_hop6 = NULL; /* we do not support forward yet */
args.eh = &save_eh; /* MAC header for bridged/MAC packets */
OpenPOWER on IntegriCloud