From owner-freebsd-current Thu Oct 24 13:56:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E9AB37B401; Thu, 24 Oct 2002 13:56:50 -0700 (PDT) Received: from smtp020.tiscali.dk (smtp020.tiscali.dk [212.54.64.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C44A43E3B; Thu, 24 Oct 2002 13:56:44 -0700 (PDT) (envelope-from snicki@snicki.dk) Received: from [192.168.1.4] (114.adsl0.abc.worldonline.dk [213.237.17.114]) by smtp020.tiscali.dk (8.12.5/8.12.5) with ESMTP id g9OKubc3008906; Thu, 24 Oct 2002 22:56:39 +0200 (MEST) Date: Thu, 24 Oct 2002 22:56:34 +0200 (CEST) From: Dennis Kristensen To: mux@freebsd.org Cc: current@freebsd.org Subject: kernel broken in ip_fw2.c Message-ID: <20021024225146.M506-100000@lap.snicki.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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