Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2014 14:37:12 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264540 - head/sys/netpfil/ipfw
Message-ID:  <201404161437.s3GEbC5A063654@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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	*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404161437.s3GEbC5A063654>