Bug 20522

Summary: ip6fw errors when trying to zero all counts
Product: Base System Reporter: James Housley <jim>
Component: binAssignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description James Housley 2000-08-10 15:40:00 UTC
	ip6fw does not allow clearing of all counts.  I looked briefly
	about 2 months ago and thought a syscall was missing or didn't
	accept the params correctly.

	I will look more when I get a chance.

	This is the same as PR: bin/20506 which I screwed up and
	made confidential

How-To-Repeat: 
	cat# ip6fw show
	00100         19       1216 count ipv6 from any to any in recv gif0
	00200         85       4088 count ipv6 from any to any out xmit gif0
	00300          0          0 count ipv6 from any to any in recv gif1
	00400          0          0 count ipv6 from any to any out xmit gif1
	00500          0          0 count ipv6 from any to any in recv gif2
	00600          0          0 count ipv6 from any to any out xmit gif2
	00700          0          0 count ipv6 from any to any in recv gif3
	00800          6        192 count ipv6 from any to any out xmit gif3
	00900        597      32228 count ipv6 from any to any in recv vr0
	01000        579      43843 count ipv6 from any to any out xmit vr0
	01100          0          0 count ipv6 from any to any in recv vx0
	01200          0          0 count ipv6 from any to any out xmit vx0
	01300          0          0 allow ipv6 from any to any via lo0
	01400          0          0 allow ipv6-icmp from ff02::/16 to ::
	01500          4         96 allow ipv6-icmp from :: to ff02::/16
	01600          0          0 allow ipv6-icmp from fe80::/10 to fe80::/10
	01700       1119      62176 allow ipv6-icmp from fe80::/10 to ff02::/16
	01800         41      13423 allow tcp from any to any established
	01900          0          0 allow udp from fe80::/10 521 to ff02::9 521
	65000        154       7920 allow ipv6 from any to any
	65535         28        832 allow ipv6 from any to any
	cat# ip6fw zero
	ip6fw: setsockopt(IPV6_FW_ZERO): Invalid argument
	cat#
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-10 16:11:06 UTC
Responsible Changed
From-To: freebsd-bugs->ume

Over to a KAME maintainer.
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2000-08-10 21:42:13 UTC
State Changed
From-To: open->closed

I fixed it. (sys/netinet6/ip6_fw.c rev 1.6) 
Thank you for your report.