Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 12:29:51 -0400
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Thomas Moestl <tmoestl@gmx.net>
Cc:        Luigi Rizzo <luigi@freebsd.org>, current@freebsd.org
Subject:   Re: different packing of structs in kernel vs. userland ?
Message-ID:  <20020715122951.E64412@espresso.q9media.com>
In-Reply-To: <20020715105158.GA314@crow.dom2ip.de>; from tmoestl@gmx.net on Mon, Jul 15, 2002 at 12:51:58PM %2B0200
References:  <20020714011810.A72236@iguana.icir.org> <20020714203642.GD314@crow.dom2ip.de> <20020714230821.C64412@espresso.q9media.com> <20020715105158.GA314@crow.dom2ip.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas Moestl <tmoestl@gmx.net> writes:
> Oh, right, that's related: the kernel checks for a minimum size of the
> passed data on two occasions, first in sooptcopyin(), and then again
> in check_ipfw_struct().
> It the size to be at least sizeof(struct ip_fw), however for
> structures containing just one action (like the one for the command
> above) this is again too much in the 64-bit case because of the
> padding. Can you please try the attached patch (against the CVS
> version)?

Yes, this version works.

%%%
bowie# ipfw show
00100          0          0 allow ip from me to 192.168.3.1
00200          5        484 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
00500          9        734 allow ip from any to any
65535          0          0 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




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