From owner-freebsd-hackers Thu Jun 26 17:06:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA21240 for hackers-outgoing; Thu, 26 Jun 1997 17:06:58 -0700 (PDT) Received: from shell.firehouse.net (brian@shell.firehouse.net [209.42.203.51]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA21234; Thu, 26 Jun 1997 17:06:55 -0700 (PDT) Received: from localhost (brian@localhost) by shell.firehouse.net (8.8.5/8.8.5) with SMTP id UAA22755; Thu, 26 Jun 1997 20:06:31 -0400 (EDT) Date: Thu, 26 Jun 1997 20:06:29 -0400 (EDT) From: Brian Mitchell To: Alejandro Galindo Chairez cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: ipfw: setsockopt failed In-Reply-To: <1.5.4.32.19970626200702.0068336c@io.com.mx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 26 Jun 1997, Alejandro Galindo Chairez wrote: > Hi > > I have the next problem: > > When the "ipfw flush" comand is executed the system send me the message: > > setsockopt failed > > or when i executed: > > ipfw add divert 32000 ip from any to any via ed1 for example > > the system send me the message > > 00000 divert 32000 ip from any to any via ed1 > ipfw: setsockopt(IP_FW_ADD): Invalid argument > > Why? and How can i resolv the problem? > > The system is a FreeBSD 2.2.1 of Walnut Creek CDROM > > Sorry for my bad english > > Thanks in advance Sounds like you dont have ipfw in the kernel, which you need. You need divert in the kernel to do divert, as well. Rebuild your kernel. Brian Mitchell brian@firehouse.net "BSD code sucks. Of course, everything else sucks far more." - Theo de Raadt