From owner-freebsd-current Tue Apr 28 07:03:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA26960 for freebsd-current-outgoing; Tue, 28 Apr 1998 07:03:56 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA26947 for ; Tue, 28 Apr 1998 07:03:35 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id KAA26098; Tue, 28 Apr 1998 10:57:56 +0200 From: Luigi Rizzo Message-Id: <199804280857.KAA26098@labinfo.iet.unipi.it> Subject: Re: Bandwidth throttling etc. To: julian@whistle.com (Julian Elischer) Date: Tue, 28 Apr 1998 10:57:56 +0200 (MET DST) Cc: kjc@csl.sony.co.jp, current@FreeBSD.ORG In-Reply-To: <3540D3AE.52BFA1D7@whistle.com> from "Julian Elischer" at Apr 24, 98 11:02:03 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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