summaryrefslogtreecommitdiff
path: root/sbin/sysctl
AgeCommit message (Collapse)Author
2010-08-26document kern.consdev;Jason McIntyre
2010-08-19Introduce an MI kern.consdev sysctl that will replace the MDMark Kettenis
machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
2010-06-29list kern.rthreads as a knob you can but shouldn't turnTed Unangst
2010-04-21scale angle by 1000000 to permit min.sec accuracyTheo de Raadt
2010-04-21Add the "angle" sensor, measured in degrees; from Luis PintoTheo de Raadt
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-20Add "frequency" type for sensors. (and teach userland how to print thatOwain Ainsworth
type). Measured in Hz. ok deraadt@
2010-04-15add SENSOR_HUMIDITY to sensor framework to handle humidity valuesYojiro Uo
ok kettenis@ xsa@ sobrado@ krw@ deraadt@
2010-02-27Remove the paragraph about "sysctl debug" as suggested by kettenis@.Ingo Schwarze
It misled users to think they could use it, and it didn't really provide any useful information. Instead, note that some sysctl variables depend on options(4). OK jmc@
2010-01-14Document hw.ncpufound and HW_NCPUFOUND.Philip Guenthe
Document the interpretation of the third and fourth levels of KERN_FILE2. Document that KERN_FILE and KERN_PROC are deprecated in favor of KERN_FILE2 and KERN_PROC2. ok and tweaks jmc@
2010-01-10Reimplement kvm_getproc2()'s support for reading crash dumps andPhilip Guenthe
/dev/mem to be direct instead of going through kvm_getprocs(), as that function is going to get more an more broken as we move stuff from struct proc to struct process for rthreads. To minimize the code copying, put the common logic of filling in a kinfo_proc2 structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from both the kernel and user-space. This also hides the KERN_PROC #define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's deprecated. Positive feedback from millert and blambert; so committing to unblock further rthreads work.
2009-11-05IPv6 support for divert sockets.Michele Marchetto
tested by phessler@ pyr@ ok claudio@ "go ahead" deraadt@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-04Add (again) support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 1 A lot of discussion have happened since my last commit that resulted in many changes and improvements. I would *really* like to thank everyone who took part in the discussion especially canacar@ who spotted out which are the limitations of this approach. OpenBSD divert(4) is meant to be compatible with software running on top of FreeBSD's divert sockets even though they are pretty different and will become even more with time. discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@ tested by reyk@ and myself ok reyk@ claudio@ beck@ manpage help and ok by jmc@
2009-09-08I had not enough oks to commit this diff.Michele Marchetto
Sorry.
2009-09-08Add support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 8000 test, bugfix and ok by reyk@ manpage help and ok by jmc@ no objections from many others.
2009-08-12Add support for SENSOR_WATTS.Mark Kettenis
ok deraadt@, oga@
2009-06-07Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures,Todd C. Miller
along with vnode type-specific info to make it more useful for fstat(1). OK deraadt@
2009-06-03add bufcachepercent to man page, and maxlocksperuid which someone forgot.Bob Beck
2008-11-08Document the ddb.trigger sysctl.Chris Kuethe
feedback and ok mpf@, deraadt@
2008-08-22mention machine/cpu.h for the CPU identifiers.Brad Smith
2008-08-04Properly output machdep.chipset values on alpha models without pci buses;Miod Vallat
ok deraadt@
2008-07-12fix printing of nchstatsThordur I. Bjornsson
ok art@,dlg@
2008-07-09expand the net.inet.(tcp|udp).baddynamic dynamic source portDamien Miller
skipping bitmasks to cover the entire 65536 port space - previously they covered 512-1024 only. sysctl needs to be updated to cope with this change; please "make includes" before rebuilding it. feedback millert@ ok millert@ deraadt@ markus@
2008-04-28Teach sysctl about mpls.Esben Norby
Claudio did all the code, I'm just comitting it... ok claudio@ laurent@ dlg@
2008-03-14"-Aa" are not required flags; sort synopses; improve description of "-a"Igor Sobrado
written with invaluable advice from jmc@ ok jmc@
2008-02-11bump Mdocdate for pages committed in "febuary", necessary becauseJason McIntyre
of a typo in rcs.c;
2008-02-09Adjust type of hw.physmem and hw.usermem; they are 64-bit values now.Mark Kettenis
2008-02-09Introduce HW_PHYSMEM64 and HW_USERMEM64 sysctls, which don't overflow onMark Kettenis
machines with more than 4GB of memory. Make sysctl(8) print values obtained using these sysctls for hw.physmem and hw.usermem. ok krw@, miod@
2008-02-05Move carp load balancing (ARP/IP) to a simpler configuration scheme.Marco Pfatschbacher
Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
2007-12-14Bring in probing for protocols that was missing; ok claudio reykTheo de Raadt
2007-12-13the mib[] array will be modified by sysctl_inet, move the *CTL_STATSReyk Floeter
checks after the call for this function. now it works (again) to skip printing the ip/tcp/udp/icmp stats in sysctl output, use netstat instead.
2007-12-13implement sysctls to report IP, TCP, UDP, and ICMP statistics andReyk Floeter
change netstat to use them instead of accessing kvm for it. more protocols will be added later. discussed with deraadt@ claudio@ gilles@ ok deraadt@
2007-11-26if no arguments given, assume a nice default; ok miod jakemsr deannaTheo de Raadt
2007-11-11do not document -w: it is for compat only. just like we did for audioctl,Jason McIntyre
mixerctl, and wsconsctl. also move to "name=value", as for the other *ctl apps. problem spotted by Tim van der Molen, though this might not be the fix he wanted;
2007-07-19kern.timecounter.timestepwarnings may be altered; from Kristaps DzonsonsJason McIntyre
2007-07-18hw.sensors is a tree, so describe/expand it as such; 'put it in' jmc@Constantine A. Murenin
2007-06-04more ipx, jmcHenning Brauer
2007-06-04no more ipxHenning Brauer
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29remove the ztsscale sysctl; ok deraadt@Robert Nagy
2007-05-27Simplify symlink creation. ok grunkAlexander Bluhm
2007-05-21small cleanups:Constantine A. Murenin
* use NULL instead of 0 for pointers, as per style(9) * wrap a long for-loop line in sysctl_malloc() * fix -Wall complaint in print_sensor() ok otto@
2007-02-20knf found while fixing another bugTheo de Raadt
2007-01-06pretty up the sensor outputs a wee bit more; partly spotted by jsgTheo de Raadt
2006-12-26Show more digits in timedelta sensor output as the timedelta sensors becomeMarc Balmer
increasingly more precise. ok deraadt
2006-12-23adapt to new two-level sensor sysctl framework; by Constantine A. MureninTheo de Raadt
2006-12-15some Nm blips, from mk;Jason McIntyre
2006-12-04retreive -> retrieve;Jason McIntyre
2006-11-21introduce sysctl net.inet6.ip6.multicast_mtudisc (for multicast routers).Jun-ichiro itojun Hagino
deraadt ok. manpage nit by jmc.