Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 10:09:55 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        "Ward... James Ward" <jew@desert.net>
Cc:        gmiddl1@gl.umbc.edu, freebsd-questions@FreeBSD.ORG
Subject:   Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument
Message-ID:  <20010510100955.B9354@sunbay.com>
In-Reply-To: <Pine.BSF.4.33.0105081132210.341-100000@jew.desert.net>; from jew@desert.net on Tue, May 08, 2001 at 11:43:20AM -0700
References:  <Pine.BSF.4.33.0105081132210.341-100000@jew.desert.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Much probably, your userland is not in sync with the kernel.
Make sure you have src/sys/netinet/raw_ip.c,v 1.64.2.3.

On Tue, May 08, 2001 at 11:43:20AM -0700, Ward... James Ward wrote:
> I read this thread from February and don't see a resolution.  I'm having
> the exact same problem under FreeBSD 4.3.
> 
> My firewall related kernel stuff:
> 
> options BRIDGE
> options IPFIREWALL
> options IPFIREWALL_DEFAULT_TO_ACCEPT
> options IPFIREWALL_VERBOSE
> options IPFIREWALL_VERBOSE_LIMIT=100
> options IPDIVERT
> 
> My dmesg states:
> 
> IP packet filtering initialized, divert enabled, rule-based forwarding
> disabled, default to accept, logging limited to 100 packets/entry by
> default
> BRIDGE 010131, have 10 interfaces
> -- index 1  type 6 phy 0 addrl 6 addr 00.04.5a.41.6d.5d
> -- index 2  type 6 phy 0 addrl 6 addr 00.04.5a.41.6d.13
> ...
> net.link.ether.bridge:
> 0
> >> now dc0 promisc ON if_flags 0xffff8943 bdg_flags 0x5
> >> now dc1 promisc ON if_flags 0xffff8943 bdg_flags 0x5
>  ->
> 1
> ...
> I get one of these for each invocation of "ipfw add..." in
> /etc/rc.firewall:
> 
> ipfw: getsockopt(IP_FW_ADD): Invalid argument
> 
> And then:
> 
> Firewall rules loaded, starting divert daemons: .
> 
> Any idea what my problem is?
> 
> Thanks in advance,
> 
> James

-- 
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-questions" in the body of the message




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