summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2009-05-31Masking the priority with RTP_MASK is no longer needed in userland.Claudio Jeker
Kernel will do this now.
2009-05-31add audible output to ping and ping6: -e beeps when pings are replied, -E ↵Chris Kuethe
beeps when pings are dropped. suggestion to make ping and ping6 use the same flag from deraadt & sthen. reminder to not forget about ping6 from todd and naddy. ok deraadt, sthen "well, i don't object..." from a few others.
2009-05-31'-d' works everywhere now. And it ignores the OpenBSD disk label,Kenneth R Westerback
not OpenBSD partitions.
2009-05-31Never 'humanize' the sector offsets of partitions or 'total sectors'.Kenneth R Westerback
If we are humanizing then add a comment to 'total sectors' line rather than replacing 'total sectors' with a new header. Suggestion and ok deraadt@
2009-05-30Make it possible to filter monitor output on AF or show only interfaceClaudio Jeker
specific changes. OK henning@
2009-05-30priority is a u_char not a u_short.Claudio Jeker
2009-05-30Make route flush more powerful by allowing -iface/-interface or -priorityClaudio Jeker
to be specified. So only routes matching these conditions will be flushed. This will help making dhclient less dumb when fiddeling with routes. OK henning@
2009-05-29catch funny values of cg_initediblk; make fsck_ffs more robustOtto Moerbeek
against forms of cg header corruption as experienced by todd@; ok millert@
2009-05-29Clean up logic around exit values. Make getasciilabel() return 0Kenneth R Westerback
for success. Fix a couple of bugs where errors in checklabel() got lost. Make Editor 'q' and 'x' commands exit with 0 (ok) rather than 1. i.e. non-zero exit value now reserved for failure, not a decision to leave the disklabel unchanged. This allows the install script to use the exit value to catch failures to write a disklabel.
2009-05-27add missing else; from ISC.Kevin Steves
this fixes an old, old bug that could cause lease entries to be lost when initially loading client leases. found while looking for another issue. ok krw@
2009-05-25log the reason before we die in routehandler(); ok krw@ henning@Kevin Steves
2009-05-23missed rtm_hdrlen conversion in one placeChris Cappuccio
ok claudio@
2009-05-20Do not fall back to using nobody if _user is missing, butThordur I. Bjornsson
error out. Add a new user _rwalld for rpc.rwalld, and use that instead of nobody, also unconditionally drop to _rwalld not only if rpc.rwalld was started with euid 0 (as root). ok deraadt@
2009-05-20Add code to attach sun mice on sparc and sparc64 as wsmouse devices. SinceMiod Vallat
not all Sun mice run at the canonical 1200 bps, hop between 1200, 4800 and 9600 bps by paying attention to breaks on the line. Attachement and engine code written 7 years ago for OpenBSD/sparc, except for sparc64 com(4) attachment. Speed hop idea borrowed from Opensolaris. This allows sparc and sparc64 users to run X11 without needing a configuration file anymore, as it was in the XFree86 3.x days. Multihead configurations will still need a minimal configuration file, though.
2009-05-17No need to write mount point info twice in 'w' command in Editor.Kenneth R Westerback
2009-05-17fascinating how make parses if statements...Theo de Raadt
2009-05-17Write out mountpoint info in writelabel() after label successfullyKenneth R Westerback
written, rather than every time editor_alloc() is called. Respect '-n' for mountpoint info. Reduces surprise appearance of files when you 'x' out of Editor. "my sunglasses did not go dark" deraadt@
2009-05-17Initialize mountpoints[] when going past again:, since aKenneth R Westerback
smaller alloc table will have fewer mountpoints and the extras cause confusion. And any info from '/etc/fstab' that was loaded into mountpoints needs to be zapped too. Noticed by jim@
2009-05-15Stop this silliness with machine dependent man pagesTheo de Raadt
2009-05-14actually change the require-order default to No; I missed a part withStuart Henderson
my last commit. ok deraadt@
2009-05-13The auto-allocator does not remember to increase the d_npartitions fieldTheo de Raadt
as it adds partitions. What the heck. Set it to MAXPARTITIONS. That is the new way we are treating d_npartitions everywhere in any case. It is the max a label can support. partitions which are not there mark themselves off. ok krw
2009-05-13Set D_VENDOR when spoofing a label on archs that use D_VENDOR whenKenneth R Westerback
reading the native disklabel. This ensures cylinder alignment. Fix disklabel to do cylinder alignment arithmetic correctly in -A mode. Worked by accident before, since the code was protected by D_VENDOR, which wasn't being set. ok deraadt@
2009-05-12don't define _KERNEL. Theres no need and its gross.Thordur I. Bjornsson
2009-05-12Various mount point handling fixes, most originally from halex@.Kenneth R Westerback
Don't do fstabfile check everywhere. Always allocate and handle mount point arrays. Use fstabfile to control 'n' command and writing mount point info. Since mount points are primed from /etc/fstab now, prime origmountpoints so 'U' works. 'D' and 'z' now free current mount point info. 'U' will not lose undo info when repeatedly invoked. 'n' accepts existing mount point name as valid.
2009-05-11Make sure last, catch-all, auto-allocated partition ends on aKenneth R Westerback
cylinder boundary if SUN_CYLCHECK is defined. Don't bother rounding any partition size to cylinder boundary if SUN_CYLCHECK is not defined. Should fix warning message on sparc64 noticed by dlg@. ok deraadt@
2009-05-11very long lines in comments are uglyTheo de Raadt
2009-05-11Always save an fstab file, even if it is empty; ok krwTheo de Raadt
2009-05-09Need to add new display type to wsconsctl(8), too.Marcus Glocker
Noted by miod@
2009-05-09fix example dd invocation; multipliers (e.g. bs=1m) use lower-case.Stuart Henderson
2009-05-06.Xr endrun 4Kevin Steves
spotted by jmc@
2009-05-06- document /etc/kbdtypeJason McIntyre
- standard options list - some minor tweakage based on a diff from Rodolfo Gouveia
2009-05-06endrun(4) - EndRun Technologies native time-of-day message timedeltaKevin Steves
sensor. Based on msts(4). Tested with Praecis Ct (http://www.endruntechnologies.com/network-time-source.htm). help and feedback mbalmer 'no problem with this sensor going in' deraadt
2009-05-05use logical or when it's intended to be a logical or; ok krw@Otto Moerbeek
2009-05-04in IPSEC BRIDGE:Jason McIntyre
- need to explicitly bring bridge0 up; from mpf - final example needs "link2"; from bsd ok mpf
2009-05-03Prevent the entry of duplicate mount points while in Editor mode.Kenneth R Westerback
ok deraadt@
2009-05-03Tune the medium profile to provide more /usr space as 'requested' by beckTheo de Raadt
also make the %'s add up to 100 again, which was part of the problem ok krw otto
2009-04-30in the big configuration, tune /tmp so that it scales up a bit slower,Theo de Raadt
and benefit /home in exchange ok otto
2009-04-30Prime mountpoint info with any fstab info that is available, withKenneth R Westerback
or without the '-f' option being present. Now you can see in Editor mode or 'disklabel <dev>' where the partitions that exist will be mounted in the current configuration. Tweaks (and libc fixes) from, and ok deraadt@
2009-04-29code that stank and made me upsetTheo de Raadt
2009-04-29KNFTheo de Raadt
2009-04-29increase the max for medium a bit, so e.g. a 6GB disk gets fully usedOtto Moerbeek
2009-04-28Sync with kernel changes.Michele Marchetto
Add support to route(8) for a new dummy operation to allow packets coming in with a particular label to leave the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
2009-04-27let vlan functionality make it into the -DSMALL ifconfig binaryTheo de Raadt
ok sthen
2009-04-26adjust the numbers for the "big" auto-allocation scheme with ottoTheo de Raadt
2009-04-26Adjust the medium auto scale after looking at how it performs between theTheo de Raadt
low and high ends of the disk sizes it applies to; with otto
2009-04-26smarter auto-allocation; numbers needs tweaking, but we are gettingOtto Moerbeek
closer, ok deraadt@ krw@
2009-04-26switch the require-order default to "no". regression tests still pass.Stuart Henderson
ok henning@ deraadt@
2009-04-26Fix 'n' (name mountpoint) Editor command. The check for the presenceKenneth R Westerback
of the -f flag was reversed.
2009-04-25scrub_opts must not be empty, scrub on its own does nothing.Henning Brauer
noticed due to a question from otto@, ok regress/sbin/pfctl/ ;)
2009-04-23ping -v can segfault when displaying received icmp packets that aren'tStuart Henderson
echo replies. it's because the pointer arithmetic is scaled to the size of struct icmp, so 28*28 bytes are added rather than just 28. fortunately a correct value was calculated 2 lines earlier, so we can just use that. "thats a cool fix" dlg, ok deraadt