From owner-freebsd-current Sun Jul 14 20:12:34 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 0FE5237B400; Sun, 14 Jul 2002 20:12:32 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA09243E42; Sun, 14 Jul 2002 20:12:31 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 54C099C11; Sun, 14 Jul 2002 23:08:21 -0400 (EDT) Date: Sun, 14 Jul 2002 23:08:21 -0400 From: Mike Barcroft To: Thomas Moestl Cc: Luigi Rizzo , current@freebsd.org Subject: Re: different packing of structs in kernel vs. userland ? Message-ID: <20020714230821.C64412@espresso.q9media.com> References: <20020714011810.A72236@iguana.icir.org> <20020714203642.GD314@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020714203642.GD314@crow.dom2ip.de>; from tmoestl@gmx.net on Sun, Jul 14, 2002 at 10:36:42PM +0200 Organization: The FreeBSD Project 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 Thomas Moestl writes: > (Disclaimer: my solution below is untested, so it may all be bogus) As request, here are the test results. Most rules work, except my final one: %%% bowie# ipfw add allow all from any to any ipfw: getsockopt(IP_FW_ADD): Invalid argument %%% Here's a list of rules that applied okay: %%% ipfw bowie# ipfw show 00100 0 0 allow ip from me to 192.168.3.1 00200 2 168 allow udp from me to 192.168.3.13 00300 0 0 allow tcp from me to 192.168.3.0/24 established 00400 0 0 deny ip from me to 192.168.3.0/24 65535 3 219 deny ip from any to any %%% Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message