Subject: misc/30793: sysctl documentation request
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <netbsd@eq.cz>
List: netbsd-bugs
Date: 07/20/2005 14:47:00
>Number:         30793
>Category:       misc
>Synopsis:       sysctl has incomplete documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 20 14:47:00 +0000 2005
>Originator:     netbsd@eq.cz
>Release:        NetBSD 2.0.2
>Organization:
	
>Environment:
	
	
System: NetBSD pete.thinline.cz 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005 jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

There are some undocumented MIB names actually available to be set using sysctl.
Comparing 'sysctl -a' output on netbsd-2 to 'current' src/lib/libc/gen/sysctl.3 and focusing on 'net.inet', these could be found:

net.inet.ip.hostzerobroadcast
net.inet.ip.ifq.len
net.inet.ip.ifq.drops
net.inet.ip.random_id
net.inet.icmp.returndatabytes
net.inet.tcp.delack_ticks


>How-To-Repeat:

Compare 'sysctl -a' and 'man 8 sysctl' and 'man 3 sysctl'.

>Fix:

I hope someone who understands it could find few minutes to tune src/lib/libc/gen/sysctl.3 and src/sbin/sysctl/sysctl.8.

>Unformatted: