Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 05:20:11 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-ipfw@FreeBSD.org
Subject:   Re: kern/145167: commit references a PR
Message-ID:  <201012100520.oBA5KBxt099839@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/145167; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/145167: commit references a PR
Date: Fri, 10 Dec 2010 05:18:46 +0000 (UTC)

 Author: ae
 Date: Fri Dec 10 05:18:37 2010
 New Revision: 216348
 URL: http://svn.freebsd.org/changeset/base/216348
 
 Log:
   MFC r213254 by luigi:
      fix breakage in in-kernel NAT: the code did not honor
      net.inet.ip.fw.one_pass and always moved to the next rule
      in case of a successful nat.
   
      This should fix several related PR (waiting for feedback
      before closing them)
   
      PR:		145167 149572 150141
   
   Approved by:	re (bz)
 
 Modified:
   stable/8/sys/netinet/ipfw/ip_fw_pfil.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/netinet/ipfw/ip_fw_pfil.c
 ==============================================================================
 --- stable/8/sys/netinet/ipfw/ip_fw_pfil.c	Fri Dec 10 05:16:25 2010	(r216347)
 +++ stable/8/sys/netinet/ipfw/ip_fw_pfil.c	Fri Dec 10 05:18:37 2010	(r216348)
 @@ -231,6 +231,11 @@ again:
  		break;
  
  	case IP_FW_NAT:
 +		/* honor one-pass in case of successful nat */
 +		if (V_fw_one_pass)
 +			break; /* ret is already 0 */
 +		goto again;
 +
  	case IP_FW_REASS:
  		goto again;		/* continue with packet */
  	
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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