summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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
2014-02-28Bring back the code removed in rev1.317 used to print anchors withMike Belopuhov
wildcard path ("ftp-proxy/*"), but make sure to call it after we're done with the ruleset for the current anchor. On one hand this repairs printing content of such anchors and on the other it allows to use a wildcard on the command line for anchors that were not initially specified with a wildcard. Makes pfctl regress happy again. OK henning, deraadt
2014-02-26Try to reduce the confusion about rdomain vs rtable. More is needed butClaudio Jeker
this is a start. With input from many.
2014-02-26Try to be more precise about rtable and rdomains.Claudio Jeker
2014-02-26Still a lie, the default is not 0. It is inherited from the process.Claudio Jeker
OK by many
2014-02-26don't policy_ref an activate policy (policy_ref/unref are assymetrical),Markus Friedl
otherwise the policy list might get corrupted; from haesbaert
2014-02-26short note that the filesystem is always mounted readonlyTed Unangst
2014-02-22Revert mountpoints tweaking. Needs much more serious surgery than timeKenneth R Westerback
permits before release, and is pointless without other following diffs to justify it that will not make release. Should fix segfault's during install reported by Rod Whitworth on tech@
2014-02-21support rekeying for IPCOMP; ok mikeb@Markus Friedl
2014-02-21Permit building without portmap/mountd rpc calls in the fallback nfs pathTheo de Raadt
ok guenther
2014-02-18check the error from ikev2_cp_setaddrMarkus Friedl
2014-02-18Do not create the default dhcp-client-identifier if an empty stringKenneth R Westerback
has been configured as the value. i.e. 'send dhcp-client-identifier "";' in dhclient.conf will result in no dhcp-client-identifier (option 61) being sent. Useful for testing dhcp server behaviour.
2014-02-17interpret 'config address net/prefix' as a pool of addresses andMarkus Friedl
randomly choose the address for CFG_REQUEST. this address will be used to replace 0.0.0.0/32 in the specified flow. e.g. > ikev2 passive esp from 192.168.1.0/24 to 0.0.0.0 \ > config address 192.168.10.200/24 will assign an address between 192.168.10.200 and 192.168.10.254 and replace 0.0.0.0 with this address. ok mikeb@ on older version of this diff.
2014-02-17basic OCSP support. enable with 'set ocsp "http://10.0.0.10:8888/"'Markus Friedl
ok mikeb@
2014-02-17Fix compiler warnings in the format strings: use %zd for ssize_t andReyk Floeter
%zu for size_t. From Andre de Oliveira With input and OK from blambert@ markus@
2014-02-17Remove a stray debug printf that crept in via one of the newqueueLawrence Teo
commits. ok henning@