From owner-freebsd-hackers Tue Oct 30 11:29:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailgw3a.lmco.com (mailgw3a.lmco.com [192.35.35.24]) by hub.freebsd.org (Postfix) with ESMTP id A5F9337B406 for ; Tue, 30 Oct 2001 11:29:32 -0800 (PST) Received: from emss01g01.ems.lmco.com ([129.197.181.54]) by mailgw3a.lmco.com (8.8.8/8.8.8) with ESMTP id OAA32405 for ; Tue, 30 Oct 2001 14:29:31 -0500 (EST) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-32 #38886) id <0GM10040159ECU@lmco.com> for freebsd-hackers@freebsd.org; Tue, 30 Oct 2001 11:28:59 -0800 (PST) Received: from cui1.lmms.lmco.com ([129.197.1.64]) by lmco.com (PMDF V5.2-32 #38886) with ESMTP id <0GM100GEF863RG@lmco.com> for freebsd-hackers@freebsd.org; Tue, 30 Oct 2001 10:46:51 -0800 (PST) Received: from lmco.com (CONNECTICUT1.lmms.lmco.com [129.197.23.84]) by cui1.lmms.lmco.com (8.11.0/8.9.2) with ESMTP id f9UIko601375 for ; Tue, 30 Oct 2001 10:46:50 -0800 (PST) Date: Tue, 30 Oct 2001 10:47:33 -0800 From: rick norman Subject: dummynet "pipe show" problem To: freebsd-hackers@freebsd.org Message-id: <3BDEF5C5.F5D604C2@lmco.com> MIME-version: 1.0 X-Mailer: Mozilla 4.77 [en] (WinNT; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have enclosed a short piece of code that seems to reproduce the problem after 5 to 10 minutes. I am running 4.3 freebsd off the release cd's. Pretty much the generic kernel except for the addition of dummynet and ipfw. My platform is a dell dimension 4100 with 1ghz p3, though I doubt that is relevant. To reproduce the problem, compile and run the enclosed code in one window. In another window su to root and run "ping -s 1024 -f 127.0.42.1". As you will see, the code reports the gowing byte count as one would expect. Walk away for 5 to 10 minutes and when you come back you should see the state I'm talking about. The flood ping stream is still running but the pipe is no longer counting bytes, it reports zero. If you kill the ping and restart it, the pipe again sees it. Can someone tell why this is happening and how to avoid it ? Thanks, Rick ----------------------cut-------------------------------------------- main() { int i; restart: system("ifconfig lo0 -alias 127.0.42.1"); system("ifconfig lo0 alias 127.0.42.1 netmask 255.255.255.0"); system("ipfw -f flush"); system("ipfw pipe 1 delete"); system("ipfw add pipe 1 ip from 127.0.42.0/24 to any in"); for(i=0;i<5;i++) { system("ipfw pipe 1 config queue 2048Bytes"); sleep(1); system("ipfw pipe 1 show"); } goto restart; } --------------------cut-------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message