From owner-freebsd-net Sun Jul 5 18:03:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA00401 for freebsd-net-outgoing; Sun, 5 Jul 1998 18:03:12 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA00332 for ; Sun, 5 Jul 1998 18:02:48 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id JAA26195; Mon, 6 Jul 1998 09:01:12 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199807060101.JAA26195@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo cc: eivind@yes.no (Eivind Eklund), jkh@time.cdrom.com, net@FreeBSD.ORG Subject: Re: how about including dummynet in 2.2.7 ? In-reply-to: Your message of "Fri, 03 Jul 1998 10:00:47 +0200." <199807030800.KAA13807@labinfo.iet.unipi.it> Date: Mon, 06 Jul 1998 09:01:12 +0800 From: Peter Wemm Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo wrote: > > The only problem I can see with Luigi's changes is I believe that they > > will screw the ipfw interface again (right, Luigi?) > > depends on what you mean for 'screw up' ... > > Because i needed some space in the structure passed to the ipfw > socket, and this size was limited to one mbuf, I reduced the number > of ports for each rule to 8, and limited the interface name length > to 10 characters. > > The former will go back to 10 if this code has to go in 2.2.7, and > for the latter, does anyone have an interface name longer than 4-5 > chars anyways ? I backported -current's mods to allow setsockopt to take data up to a cluster (~2K) instead of 108 bytes. I'm using a variant of the ipfw packet forwarding stuff (in this case both for transparent proxying and for source address based routing). The IPFIREWALL_FORWARD adds a sockaddr_in to the ipfw structs and takes it way over the limit. I think the setsockopt stuff should be backported. It doesn't change any interfaces itself but makes it a hell of a lot easier to add other things, perhaps at the user's site, or in the base 2.2.x source. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message