Subject: bin/23523: ALTQ_stat bug
To: None <gnats-bugs@gnats.netbsd.org>
From: pancake <pancake@phreaker.net>
List: netbsd-bugs
Date: 11/21/2003 18:29:40
>Number:         23523
>Category:       bin
>Synopsis:       altq counts -1 as valid byte size
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 21 17:20:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6ZF
>Organization:
	no thanks :)
	
>Environment:
	
	
System: NetBSD panser 1.6ZF NetBSD 1.6ZF (PANCAKE-PANSER-SERVER) #20: Fri Nov 21 00:27:00 CET 2003 root@panser:/usr/src/sys/arch/i386/compile/PANCAKE_PANSER i386
Architecture: i386
Machine: i386
>Description:
	I just install ALTQ_PRIQ on my dialup gateway box. All altq works
	properly until line-noise hangs-up the connection, then the iface
	goes down (ppp0), and then altq_stat became fool O_O

	Look at this statistics:

	[high] handle:0xc0666480 pri:2
	  measured: 0.13Kbps qlen: 0 period:450
	     packets:450 (29142 bytes) drops:0
	[low] handle:0xc0592500 pri:0
	  measured: 0bps qlen: 0 period:92
	     packets:92 (18446744068947553399 bytes) drops:42

	The low-priority (default filter) counter of bytes transfered
	became a huge number.
	
>How-To-Repeat:
	My altq.conf file looks like this:
	[~@panser]$ cat /etc/altq.conf 
	# ALTQ_PANCAKE
	interface ppp0 bandwidth 56k priq

	class priq ppp0 high NULL priority 2
	  filter ppp0 high 0   22 0 0 6 # 0:0 -> 0:22 (tcp)
	  filter ppp0 high 0 6667 0 0 6 # (irc)
	  filter ppp0 high 0 5222 0 0 6 # Jabber
	  filter ppp0 high 0  110 0 0 6 # Pop3
	  filter ppp0 high 0   25 0 0 6 # Smtp
	class priq ppp0 low NULL default

	I hope this helps on something :)

	
>Fix:
	I don't have enought time to read and patch code. Sorry :( If I make
	a patch I will send'it
	
>Release-Note:
>Audit-Trail:
>Unformatted: