Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2011 09:40:10 GMT
From:      "skeletor@lissyara.su" <skeletor@lissyara.su>
To:        freebsd-ipfw@FreeBSD.org
Subject:   Re: kern/147720: [ipfw] ipfw dynamic rules and fwd
Message-ID:  <201105310940.p4V9eA15028022@freefall.freebsd.org>

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

From: "skeletor@lissyara.su" <skeletor@lissyara.su>
To: bug-followup@FreeBSD.org, dima_bsd@inbox.lv
Cc:  
Subject: Re: kern/147720: [ipfw] ipfw dynamic rules and fwd
Date: Tue, 31 May 2011 12:03:53 +0300

 Hello!
 I have tested the NEW following code on FreeBSD 8.2 Release i386 and it 
 works!
 
 New CODE (patched)
 
 ...
 case O_FORWARD_IP: {
 +	struct sockaddr_in *sa;
 +	sa = &(((ipfw_insn_sa *)cmd)->sa);
 	if (args->eh)<->/* not valid on layer2 pkts */
 		break;
 +	if (!q || dyn_dir == MATCH_FORWARD || sa->sin_port == 0) {
 -	if (!q || dyn_dir == MATCH_FORWARD) {
 -	struct sockaddr_in *sa;
 -	sa = &(((ipfw_insn_sa *)cmd)->sa);
 ...
 
 
 This code was patched by Vadim Goncharov and tested by me (skeletor).
 



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