From ishizuka@odekake.wakwak.com  Sat Dec 23 03:08:26 2000
Return-Path: <ishizuka@odekake.wakwak.com>
Received: from odekake.wakwak.com (odekake.wakwak.com [210.165.8.218])
	by hub.freebsd.org (Postfix) with ESMTP id DD75737B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 23 Dec 2000 03:08:25 -0800 (PST)
Received: (from ishizuka@localhost)
	by odekake.wakwak.com (8.11.1/8.11.1) id eBNB8Nw00391;
	Sat, 23 Dec 2000 20:08:23 +0900 (JST)
	(envelope-from ishizuka)
Message-Id: <200012231108.eBNB8Nw00391@odekake.wakwak.com>
Date: Sat, 23 Dec 2000 20:08:23 +0900 (JST)
From: ishizuka@ish.org
Sender: ishizuka@odekake.wakwak.com
Reply-To: ishizuka@ish.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Modifying pipe config makes dummynet stop
X-Send-Pr-Version: 3.2

>Number:         23793
>Category:       kern
>Synopsis:       modifying pipe config makes dummynet stop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 23 03:10:01 PST 2000
>Closed-Date:    Sun Feb 11 15:19:00 PST 2001
>Last-Modified:  Sun Feb 11 15:20:26 PST 2001
>Originator:     Masachika ISHIZUKA
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:

	machine:
	CPU  pentium III/933
	NIC  Intel Pro 100B (fxp) x 2
	DIMM 1GB

	FreeBSD 4.2R but ip_dummynet.c and bridge.c are replaced as follows:
	$FreeBSD: src/sys/netinet/ip_dummynet.c,v 1.24.2.5 2000/11/26 20:24:18 bmilekic Exp $
	$FreeBSD: src/sys/net/bridge.c,v 1.16.2.8 2000/11/28 00:27:30 bmilekic Exp $

	kernel compile with the following options:
	options IPFIREWALL
	options IPFIREWALL_FORWARD
	options IPFIREWALL_VERBOSE
	options IPDIVERT
	options MSGBUF_SIZE=40960
	options BRIDGE
	options IPFIREWALL_DEFAULT_TO_ACCEPT
	options DUMMYNET
	options MROUTING

	bridge mode is enabled with the /etc/sysctl.conf:
	net.link.ether.bridge=1
	net.link.ether.bridge_ipfw=1

	ipfw rules:
	ipfw add allow ip from any to any via lo0
	ipfw add deny ip from any to 127.0.0.0/8
	ipfw queue 1 config pipe 1 weight 5 mask src-ip 0x0000001f
	ipfw queue 2 config pipe 2 weight 5 mask dst-ip 0x0000001f
	ipfw pipe 1 config bw 1Mbit/s
	ipfw pipe 2 config bw 1Mbit/s
	ipfw queue 1 ip from 10.1.1.0/27 to any bridged
	ipfw queue 2 ip from any to 10.1.1.0/27 bridged
	ipfw add allow ip from any to any

>Description:

	It is good working with 1mbit/s shaping when start up, but
	I want to modify shaping speed with the following command.

	# ipfw pipe 1 config bw 10mbit/s

	Then no packet was transmitted at all. The packets are queued
	as follows and dropped.

	# ipfw pipe show
	q00001: weight 5 pipe 1   50 sl. 14 queues (64 buckets) droptail
	    mask: 0x00 0x0000001f/0x0000 -> 0x00000000/0x0000
	BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
	  2 ip           0.0.0.1/0             0.0.0.0/0      2060   199376 50 4852 1928

	Is there any way to modify shaping speed of active pipes ?

>How-To-Repeat:

	

>Fix:

	


>Release-Note:
>Audit-Trail:

From: Masachika ISHIZUKA <ishizuka@ish.org>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: kern/23793: Modifying pipe config makes dummynet stop
Date: Sat, 23 Dec 2000 20:59:38 +0900

 >>Description:
 > 
 > 	It is good working with 1mbit/s shaping when start up, but
 > 	I want to modify shaping speed with the following command.
 > 
 > 	# ipfw pipe 1 config bw 10mbit/s
 
   Very sorry.
 
   I miss typed 10mbit/s.
                  ~
 'ipfw pipe 1 config bw 10Mbit/s' can be modified to 10Mbit/s.
                          ~
 -- 
 ishizuka@ish.org
 
State-Changed-From-To: open->closed 
State-Changed-By: luigi 
State-Changed-When: Sun Feb 11 15:19:00 PST 2001 
State-Changed-Why:  
i assume the problem had to do with either a typo in the config 
command, or a known and fixed problem related to spl() masks. 
Either way, the PR seems not relevant anymore. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=23793 
>Unformatted:
