svn commit: r264813 - stable/10/sys/netpfil/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Wed Apr 23 09:56:18 UTC 2014


Author: ae
Date: Wed Apr 23 09:56:17 2014
New Revision: 264813
URL: http://svnweb.freebsd.org/changeset/base/264813

Log:
  MFC r264540:
    Set oif only for outgoing packets.
  
    PR:		188543

Modified:
  stable/10/sys/netpfil/ipfw/ip_fw_pfil.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netpfil/ipfw/ip_fw_pfil.c
==============================================================================
--- stable/10/sys/netpfil/ipfw/ip_fw_pfil.c	Wed Apr 23 09:32:33 2014	(r264812)
+++ stable/10/sys/netpfil/ipfw/ip_fw_pfil.c	Wed Apr 23 09:56:17 2014	(r264813)
@@ -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-stable-10 mailing list