From owner-freebsd-stable Mon Oct 23 6:44:51 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.lewman.org (lowrider.lewman.org [63.109.230.166]) by hub.freebsd.org (Postfix) with ESMTP id 45EA537B4CF; Mon, 23 Oct 2000 06:44:48 -0700 (PDT) Received: by mail.lewman.org (Postfix, from userid 1004) id 88B193D85; Mon, 23 Oct 2000 09:44:39 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.lewman.org (Postfix) with ESMTP id 86BF05BA0; Mon, 23 Oct 2000 09:44:39 -0400 (EDT) Date: Mon, 23 Oct 2000 09:44:39 -0400 (EDT) From: Sean Lutner X-Sender: sean@lowrider.lewman.org To: Ruslan Ermilov Cc: stable@FreeBSD.org Subject: Re: ipfw breakage? In-Reply-To: <20001023114838.E20237@sunbay.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I recompiled my kernel as part of my latest cvsup. I will try cleaning up my sources and do another cvsup. Thanks for the info. Sean On Mon, 23 Oct 2000, Ruslan Ermilov wrote: > On Sun, Oct 22, 2000 at 11:28:24PM -0400, Sean Lutner wrote: > > Forgive me if this has been attended to, but it seems that there is some > > problem with ipfw. I cvsup'd as of yesterday morning > > (10/21/00) 4.1.1-STABLE. I did not make any changes at all to my > > rc.firewall, but I get the following message when the rc.firewall script > > is run. Has there been some breakage in the code? > > > > Flushed all rules. > > ipfw: getsockopt(IP_FW_ADD): Protocol not available > > > > The above line starting with ipfw: is repeated for each rule I have. I > > even tried going to just a default allow pass all from any to any. > > > > Any help is appreciated. > > > I have recently changed the ipfw code to allow the IP_FW_ADD to be used > with getsockopt(2) (previously it was only allowed with setsockopt(2)). > Quite probably, you have just forgotten to recompile your kernel. Also > make sure you have the consistent sources: > > } ru 2000/10/17 06:44:58 PDT > } > } Modified files: (Branch: RELENG_4) > } sbin/ipfw ipfw.c > } sys/netinet ip_fw.c raw_ip.c > } Log: > } MFC: make rule number available from getsockopt(IP_FW_ADD). > } > } Revision Changes Path > } 1.80.2.7 +4 -4 src/sbin/ipfw/ipfw.c > } 1.131.2.7 +4 -2 src/sys/netinet/ip_fw.c > } 1.64.2.3 +2 -1 src/sys/netinet/raw_ip.c > > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message