Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 22:56:34 +0200 (CEST)
From:      Dennis Kristensen <snicki@snicki.dk>
To:        mux@freebsd.org
Cc:        current@freebsd.org
Subject:   kernel broken in ip_fw2.c
Message-ID:  <20021024225146.M506-100000@lap.snicki.dk>

next in thread | raw e-mail | index | archive | help
Hi!

Looks like kernel is broken without the bellow patch.


-Dennis

--- /usr/src/sys/netinet/ip_fw2.c       Thu Oct 24 20:04:44 2002
+++ /usr/src/sys/netinet/ip_fw2.c.new   Thu Oct 24 22:48:43 2002
@@ -2501,7 +2501,7 @@ ipfw_ctl(struct sockopt *sopt)
                for (rule = layer3_chain; rule ; rule = rule->next) {
                        int i = RULESIZE(rule);
                        bcopy(rule, bp, i);
-                       ((struct ip_fw *)bp)->set_disable = set_disable;
+                       ((struct ip_fw *)bp)->next_rule = set_disable;
                        bp = (struct ip_fw *)((char *)bp + i);
                }
                if (ipfw_dyn_v) {
@@ -2513,7 +2513,7 @@ ipfw_ctl(struct sockopt *sopt)
                                for ( p = ipfw_dyn_v[i] ; p != NULL ;
                                    p = p->next, dst++ ) {
                                        bcopy(p, dst, sizeof *p);
-                                       dst->rulenum = p->rule->rulenum;
+                                       dst->rule = p->rule->rulenum;
                                        /*
                                         * store a non-null value in "next".
                                         * The userland code will interpret a




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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