svn commit: r264540 - head/sys/netpfil/ipfw
Andrey V. Elsukov
ae at FreeBSD.org
Wed Apr 16 14:37:12 UTC 2014
Author: ae
Date: Wed Apr 16 14:37:11 2014
New Revision: 264540
URL: http://svnweb.freebsd.org/changeset/base/264540
Log:
Set oif only for outgoing packets.
PR: 188543
MFC after: 1 week
Sponsored by: Yandex LLC
Modified:
head/sys/netpfil/ipfw/ip_fw_pfil.c
Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_pfil.c Wed Apr 16 12:29:45 2014 (r264539)
+++ head/sys/netpfil/ipfw/ip_fw_pfil.c Wed Apr 16 14:37:11 2014 (r264540)
@@ -334,7 +334,7 @@ ipfw_check_frame(void *arg, struct mbuf
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 */
More information about the svn-src-head
mailing list