summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2009-06-06mention that the timeout is in milliseconds... because i always forget.Chris Kuethe
2009-06-06Uninitialized variable causing havoc on flush. Found by rivo nurgesClaudio Jeker
2009-06-06Nuke debug() unless DEBUG is defined. Elminates debug output fromKenneth R Westerback
normal operations. Prodded by deraadt@ a while ago.
2009-06-05rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@, henning@
2009-06-05seperate -> separateJason McIntyre
2009-06-05tweak -V;Jason McIntyre
2009-06-05Document rdomainClaudio Jeker
2009-06-05Fix usage.Claudio Jeker
2009-06-05Allow ping to use an alternate routing domain by using the -V flag.Claudio Jeker
2009-06-05Make it possible to bind an interface to a rdomain. Manpage will follow soon.Claudio Jeker
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
2009-06-04i care about theo's hydration level. make him stop whining by documentingHenning Brauer
inet6/-inet6
2009-06-04allow IPvShit to be turned off completely per-interface.Henning Brauer
ifconfig em0 -inet6 deletes all v6 addresses including link-local and prevents new ones from being added. ifconfig em0 inet6 <addr> re-enables v6, brings the link local back and adds optional <addr> ok theo reyk
2009-06-04xfs -> nnpfs;Jason McIntyre
2009-06-03add bufcachepercent to man page, and maxlocksperuid which someone forgot.Bob Beck
2009-06-03Define a wsdisplay type for gfxp(4).Mark Kettenis
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-06-03Use the new powerful route flush to clean up the mess. With this multipleClaudio Jeker
dhclient can more or less peacefully coexist. OK beck@ krw@
2009-06-03remove unneeded ARGSUSED; ok krw@ henning@Kevin Steves
2009-06-02snprintf returns int, not size_t.Ray Lai
OK millert otto deraadt
2009-06-02remove unused variableCharles Longeau
ok krw@
2009-06-02Define a proper wsdisplay type for machfb(4).Mark Kettenis
ok miod@
2009-06-02Add '-h' flag, and '*' as a unit specifier for 'p' Editor command.Kenneth R Westerback
Both cause partition sizes to be displayed using a human readable format with the units automatically chosen by looking at the smallest partition in the disk label. Remove forceable humanization in 'A' code and use '-h' in install scripts. Prodded & ok deraadt@, verbiage tweaks from jmc@
2009-06-01tweak previous;Jason McIntyre
2009-05-31Always show the start and end of the OpenBSD area in units ofKenneth R Westerback
sectors, not any 'human' unit in force.
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@