summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2014-04-19Add missing description for IPv6 mtudisctimeout sysctl andlogan
rework the wording for both IPv4 and IPv6. OK from sthen@, henning@ and claudio@
2014-04-19remove altq bits here, tooHenning Brauer
(i was convinced i committed that yesterday already, hrm)
2014-04-19Add missing man page descriptions for the following IPv6 sysctls:logan
-maxdynroutes -maxifprefixes -maxifdefrouters -neighborgcthresh OK from sthen@, claudio@ and henning@
2014-04-18round up some enemy sympathizers found calling RAND_seed().Ted Unangst
ok beck reyk
2014-04-17Sync show.c to what we have in netstat.c (at least steal some good idiomsClaudio Jeker
from there). OK sthen@ mpi@ jca@
2014-04-17Oops. INADDR_ANY != INADDR_BROADCAST. Fixes DHCPDISCOVERY andKenneth R Westerback
DHCPDECLINE. noted by sthen@
2014-04-17Eliminate a couple of always-NULL parameters. Eliminate someKenneth R Westerback
pointless repetition of well-known info in log messages. Pass around smaller bits of info. Make 'inaddr_any' a const struct initialized with { INADDR_ANY }. Tweaks and ok guenther@
2014-04-16Make dhclient -q even quieter. Make it immediately effective ratherKenneth R Westerback
than possibly emitting a couple of random memory allocation error messages first. ok guenther@
2014-04-16OpenSSL is not the only place with bloated code! Remove unusedKenneth R Westerback
function 'option_as_string()'.
2014-04-16More des_foo -> DES_fooMiod Vallat
2014-04-14Fix the following idiom in the following way:Bret Lambert
arc4random_buf(seed, sizeof(seed)); RAND_seed(seed, sizeof(seed)); + explicit_bzero(seed, sizeof(seed)); ok reyk@
2014-04-13At some point, we are going to switch the mandoc(1) defaultIngo Schwarze
from -Tascii to -Tlocale, even though not quite yet because there are more important things to do first. But let's already make -Tascii explicit in the build system right now, it is safer anyway.
2014-04-11fix a use after free in an error pathJonathan Gray
ok henning@ mikeb@
2014-04-10Add validation routines to ikev2_pld.c: For each payload type overallReyk Floeter
header structure is checked for sanity before copying the header. Always pass down the number of remaining bytes in the payload or substructure so we can always ensure to not go beyond actual data. Also remove the quick parsing step as it does not provide a real benefit anymore. From Hans-Joerg Hoexer ok mikeb@ markus@
2014-04-08Use VM_UVMEXP instead of VM_METER for memory usages and directlyMartin Pieuchot
include <sys/vmmeter.h> where it is needed instead of relying on it being included by <uvm/uvm_extern.h>. miod@ likes it, ok guenther@
2014-04-03On second thought, make that manpage MI, even though the binary is notMiod Vallat
necessarily built; that makes it consistent with wsconsctl(8). Prodded by deraadt.
2014-04-03Install the manpage on loongson too (and arm* while there); it could be arguedMiod Vallat
that this little binary is worth building everywhere with an MI manpage although there are still a few arches where it won't serve any useful purpose; spotted by Donovan Watteau.
2014-04-03Proper validation and computation of bsize in expert mode; ok krw@ millert@Otto Moerbeek
2014-03-31Use return value constants to make effects clearer than the useKenneth R Westerback
of an intermediate variable. No intended functional change.
2014-03-31Whitespace rectification.Kenneth R Westerback
2014-03-31Nuke [get|put][short|long] and just use letoh[16|32] andKenneth R Westerback
htole[16|32]. This is made possible by a) copying unaligned data (struct dos_partition's) into properly aligned structs and accessing the fields of the same; and b) realizing that gcc is smart enough to access fields in packed struct's *if* it knows it is accessing a packed struct. Even sparc64 finally gave a thumbs up. After several attempts and feedback from deraadt@ and dlg@, it looks good to deraadt@.
2014-03-26Drop Apollo Domain keyboard support, now that hp300 has bitten the dust.Miod Vallat
Replace it with SGI serial keyboard support (zskbd@zs@hpc).
2014-03-25Use 'struct dos_partition' variable to access 'struct dos_partition'Kenneth R Westerback
data. Since all the fields but 2 that are specially handled are u_int8_t's there should be no danger from alignment issues. ok dlg@
2014-03-24Remove "-r" option from ping(8) and traceroute{,6}(8). You've probablyMartin Pieuchot
never heard about it, it was to bypass the routing tables, not available for IPv6 and we're going to always use the routing tables soon. ok florian@, man pages ok jmc@
2014-03-24Split the API: struct ucred remains the kernel internal structure whilePhilip Guenther
struct xucred becomes the structure for syscalls (mount(2) and nfssvc(2)). ok deraadt@ beck@
2014-03-23Change struct mbr signature field type from 'unsigned short' toKenneth R Westerback
'u_int16_t' to be consistant with disklabel.h's struct dos_mbr.
2014-03-22warn() -> warnx() when errno is irrelevant.Kenneth R Westerback
2014-03-20Simplify a bit of code to make sure even -Wall can see the variablesKenneth R Westerback
are not used uninitialized. As a bonus, make variables the same type as the data they are trying to preserve.
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h toKenneth R Westerback
eliminate multiple 'implicit' declarations introduced by the previous over-zealous #include cleanup. Thanks to to tedu@ for pointing out how -Wall reveals all.
2014-03-20Add back #include <stdlib.h> so strtod() works better. Fixes fdisk onKenneth R Westerback
sparc64 at least. Found when deraadt@ complained about loongson miniroot blowing up.
2014-03-19Unify ipsec.conf(5)'s copy of the text dealing with multiline comments,Stuart Henderson
this was missed when unifying text in the other parse.y parsers (see e.g. pf.conf.5 r1.495). Noticed in a misc@ post by zeloff at zeloff/org.
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
2014-03-18Sync built-in MBR with current (a.k.a. '2004 Version') ofKenneth R Westerback
/usr/mdec/mbr. Only one instruction changes, a 'cli' becomes 'sti'. ok deraadt@ tedu@
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
#include in *.h files in favour of listing them as required in the *.c files. Fix error message to correctly state that 64 is the minimum value for -l. Use errx() where errno is not relevant. Use 'continue' rather than a label to go back to start of a loop. No intentional functional change.
2014-03-17Un-revert, being careful to not break snap building. Add paranoia checkKenneth R Westerback
for any missing geometry.
2014-03-14Revert last -- broke building snaps.Kenneth R Westerback
2014-03-13Remove some lint -- ARGSUSED.Kenneth R Westerback
Inspired by guenther@.
2014-03-13Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tKenneth R Westerback
need to record two sets of metric/geometry data. Use 'geometry' instead of 'metrics' in names and comments. Eliminate DISK_getmetrics(). While here, make 64 the minimal valid value for '-l' instead of 1. This avoids the possibility of having 0 cylinders. No intentional functional change. Feedback & tweak from chris@
2014-03-13no more spray(8);Jason McIntyre
2014-03-12don't leak an ibuf for each expired SA; ok mikeb@Markus Friedl
2014-03-12unbreak config-address w/o pool; ok mikeb@Markus Friedl
2014-03-11For CA generation, go back to using a two-step procedure to create a CSR andStuart Henderson
then self-sign it rather than using the "openssl req" shortcut. This allows us to specify -extfile and thus set the correct certificate extensions so that stricter SSL implementations will trust this as a CA cert, and matches how things are done in ssl(8). This is basically a partial revert of r1.77. Researched by chrisz@, tweak/ok jmc@ ok beck@
2014-03-10No need to pass the name of the command to the function that isKenneth R Westerback
implementing that command, a pointer to the command arguments is the only thing needed. No need to have a pointer to the command table in every command, since there is only one table. No need for shiney new stack space for every command name and arguments parsed, since we don't recurse we can just use static memory. No intentional functional change.
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundKenneth R Westerback
'struct dos_mbr' variables, since that is what the buffers were used for. Removes need to know about DEV_BSIZE and thus include param.h from all files but one so move the param.h #include to that file (mbr.c). Nuke a bunch of local MBR #defines in favour of the disklabel.h ones. Remove a bunch of unneeded #includes, replace the odd malloc/bzero with calloc, replace equally odd bcopy's with memcpy, remove a stray duplicate MBR parsing in MBR_pcopy(). No intentional functional change.
2014-03-08It's silly to check at compile time for DEV_BSIZE == 512.Kenneth R Westerback
ok deraadt@ with gritted teeth on keeping <sys/param.h> for now.
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
abstraction. Call a 'struct' a 'struct' and not a pony. No functional change. idea ok deraadt@
2014-03-07If allocation of 'id' fails, don't try to deref it after 'goto fail'.Gerhard Roth
ok millert@
2014-03-06tweak previous;Jason McIntyre
2014-03-05fix a null test, from remco.Ted Unangst
and then modernize some other function pointer calls.
2014-03-02-l disksize code, to force LBA mode. code by chris, after I suggestedTheo de Raadt
wrapping rows of echo's via fdisk was silly. ok kettenis krw