From owner-freebsd-current Tue Apr 28 09:48:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA04075 for freebsd-current-outgoing; Tue, 28 Apr 1998 09:48:04 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA04064 for ; Tue, 28 Apr 1998 09:48:02 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id JAA13282; Tue, 28 Apr 1998 09:39:10 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd013269; Tue Apr 28 16:39:04 1998 Date: Tue, 28 Apr 1998 09:33:36 -0700 (PDT) From: Julian Elischer To: Luigi Rizzo cc: kjc@csl.sony.co.jp, current@FreeBSD.ORG Subject: Re: Bandwidth throttling etc. In-Reply-To: <199804280857.KAA26098@labinfo.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG wasn't setsockopt changed to do > 108 in a recent -current? (2 weeks ago?) have you a new -current? On Tue, 28 Apr 1998, Luigi Rizzo wrote: > Playing with ipfirewall and mbufs, i am hitting a problem related to > the size of mbufs. > > In my implementation, i need to add a couple of fields (6 bytes total) > to the struct ip_fw, bringing its size to 112 bytes. > > setsockopt() fails for sizes>108 bytes. > > there are two ways i can save the space: > > 1) reduce IP_FW_MAX_PORTS to 7 instead of 10 > 2) move counters and statistic info (timestamp) to the end > of the struct ip_fw, and allow setsockopt() to work only > on the initial part of the structure. > > suggestions ? The first one is a quick solution to the problem, i am > just not sure how widespread are rules using 8,9,10 ports (where there > is a difference between new and old behaviour). > > cheers > luigi > -----------------------------+-------------------------------------- > Luigi Rizzo | Dip. di Ingegneria dell'Informazione > email: luigi@iet.unipi.it | Universita' di Pisa > tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) > fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ > _____________________________|______________________________________ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message