The following reply was made to PR kern/147720; it has been noted by GNATS.

From: "skele...@lissyara.su" <skele...@lissyara.su>
To: bug-follo...@freebsd.org, dima_...@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).
 
_______________________________________________
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscr...@freebsd.org"

Reply via email to