From owner-freebsd-ipfw Wed Apr 3 1:42:56 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from smtp07.wxs.nl (smtp07.wxs.nl [195.121.6.39]) by hub.freebsd.org (Postfix) with ESMTP id 973AF37B400 for ; Wed, 3 Apr 2002 01:42:51 -0800 (PST) Received: from Alex ([213.10.151.186]) by smtp07.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GTZKBD01.DDG; Wed, 3 Apr 2002 11:42:49 +0200 Date: Wed, 3 Apr 2002 11:42:46 +0200 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <1182697969.20020403114246@dds.nl> To: rick norman Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re[2]: dummynet pipes In-Reply-To: <3CAA5615.21490755@lmco.com> References: <3CAA0C05.5062D5A7@lmco.com> <20020402120303.A87723@iguana.icir.org> <3CAA5615.21490755@lmco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello rick, Wednesday, April 03, 2002, 3:08:38 AM, you wrote: rn> I'm running 4.3 so I don't know if that makes a difference, but rn> there are somethings I don't understand about the commands. If rn> the command 'ipfw add pipe 1 ip from ...' is executed, I get a rn> rule 00100 number added with the pipe number requested according rn> to 'ipfw list'. The command 'ipfw pipe 1 delete' then gives a rn> setsockopt err. 'ipfw pipe flush' returns successfully but when I rn> list the rules, nothing is gone. 'ipfw delete 100' deletes the rn> rule and the pipe is no longer visible. Apparently I don't rn> understand how pipe numbers relate to rule numbers. I've read rn> what I could find, any help or reading reccomendations are rn> appreciated. thanks rn> Rick Norman Consider something like this: ipfw pipe 1 config bw 100kb/s ipfw pipe 2 config bw 200kb/s ipfw add 100 pipe 1 ip from any to any A pipe gets connected to ip-packets via rules. In this case you may need to remove the rule before you remove the pipe because of the dependency between them. 1) ipfw pipe flush 2) ipfw flush 3) ipfw pipe flush 1) Pipe 1 still has a dependency. So you should be only able to remove pipe 2, as this isn't connected to anything 2) This will remove all rules, thus removing the connections between all pipes. 3) This will remove any remaining pipes. This could also be done at 2 if ipfw remembers you want to remove the pipes. I didn't try this out, it just seem logical to me this way. I hope this is any help. -- Best regards, Alex mailto:freebsd@akruijff.dds.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message