summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-15Fix several CMSG-related bugs. Chaining CMSG's is tricky since you need toMark Kettenis
use CMSG_SPACE for all except the last one, which should be CMSG_LEN. This makes calculate .msg_controllen tricky. Also make sure that we can receive multiple CMSG's again. ok deraadt@, hshoexer@
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-03-13make sure we start 4 servers on udp if called withThordur I. Bjornsson
no arguments, like the man page promises. ok deraadt@, blambert@ From tcuji@pwns.ms
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-03-12Code was not passing script exit status; fix with macro.Hugh Graham
deraadt@ OK
2008-03-02Use a union to ensure alignment of the cmsg.Hans-Joerg Hoexer
ok deraadt
2008-02-28Log an error if a device can not be opened, only log line discipline attachmentMarc Balmer
when the line discipline has really been attached. And a few manual tweaks.
2008-02-22Support for specifying aes-{128,192,256}. Originial idea by PrabhuHans-Joerg Hoexer
Gurumurthy, tweaks and commit-ready diff by Mitja Muzenic! Thanks guys! ok todd@
2008-02-18adjust width of S column to improve printing of the MBR partition tableIgor Sobrado
on modern disk geometries; while here, better alignment of column labels ok jmc@, jsing@, krw@, and otto@
2008-02-17Define default configurations for AES-192 and AES-256. From Mitja MuzenicHans-Joerg Hoexer
<mitja at muzenic dot net>, diff provided already quite some time ago, many many thanks. This should have gone in months ago but I was slacking, sorry for that.
2008-02-13Use HW_PHYSMEM64.Mark Kettenis
ok henning@
2008-02-12document modifier types; requested by AurelienJason McIntyre
text from ipsecadm(8), hshoexer, and myself
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-07Check reads and lseek correctly for unsigned return; ok krw@Ian Darwin
2008-02-06Fix possible memory leaks when sending phase 1 IDs.Moritz Jodeit
From Igor Zinovik <zinovik@cs.karelia.ru> ok hshoexer@
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@.
2008-02-01Enable the rest of the filter_opts to be used on anchors. These were acceptedRyan Thomas McBride
by the parser but not passed to the kernel. This allows filtering based on uid, gid, icmp options, tcp flags, os fingerprint, tos, tags, and probability; It also allows the label to be set. State options and tagging are not permitted. ok henning mpf
2008-01-29More read/write result checking fixes to avoid unsigned comparisons vsKenneth R Westerback
-1. ok henning@ beck@ ray@
2008-01-29fix race in makefileMarc Espie
2008-01-26the kids want I/O;Jason McIntyre
2008-01-26getuint() doesn't use its partno argument. So eliminate it. NoKenneth R Westerback
functional change. Noticed by lint.
2008-01-26Create the automatic tables at the base of the anchor stack rather thanRyan Thomas McBride
in the inline anchor. Fixes optimizer bug where automatic table creation in inline anchors fails because rules are now loaded after optimization and no transaction has been opened for the anchor. bug reported by Henrik Johansen ok henning dhartmei
2008-01-25Fix my screwup and don't return NULL from sort_paritions.Kenneth R Westerback
Problem found by ckuethe@, slightly different fix than the one proposed by otto@ applied.
2008-01-25document maximum partition size; ok jmc@ krw@Otto Moerbeek
2008-01-25Get rid of warning when compiling with OPT_DEBUG.Ryan Thomas McBride
2008-01-24"read(..., ..., sizeof Y) < sizeof Y" is a dangerous idiom because itKenneth R Westerback
does an unsigned comparison and read() can return -1. Use '!=' instead of '<' since read() can't return more than 'sizeof Y'. Not perfect (that would require a separate test for -1) but a very common usage. Do the same for a write(), and a couple of read() calls which are probably ok but why be inconsistant? This, as the last couple of commits, found by ian@ as a result of poking around in fsck_msdos() when his new iPod had problems vs OpenBSD. Concept reviewed by miod@, beck@, otto@ and ian@.
2008-01-22pick the right csaddr when dumping cgs. Makes FFS2 dumps work much betterOtto Moerbeek
ok thib@ millert@
2008-01-22Another sneaky 32 bit variable trying to hold 64 bit values. This timeKenneth R Westerback
in find_bounds() when processing a DOS MBR.
2008-01-22Use u_int64_t variables to hold partition offsets when calculatingKenneth R Westerback
offsets and sizes of free chunks. 32 bits just won't hack new big partitions. Simplify and clarify code while here.
2008-01-22Make sort_partitions() even more consistant with free_chunks() by notKenneth R Westerback
returning the number of elements. Check for terminating empty entry (i.e. NULL) instead. Code a bit clearer and shorter with fewer variables. No functional change.
2008-01-22Kill redundant loop to find number of partitions to sort. We no longerKenneth R Westerback
calloc() the memory.
2008-01-22Replace a frequent calloc/free dance for sorted partitions with aKenneth R Westerback
static array that we zero before each use. heapsort(3) shouldn't care. "should be fine" beck@
2008-01-21changes to disklabel's usage:Igor Sobrado
- align usages and their descriptions (text enclosed in brackets); - blank[], used for padding prior to r1.86, can improve readability of usage on 80-column displays if NUMBOOT == 2 ok jsing@, krw@
2008-01-19Add initial scaffold for RAID 0. No IO just yet.Marco Peereboom
Much prodding todd
2008-01-16remove "unused variable" warningCharles Longeau
ok krw@
2008-01-15s/fragements/fragments/ in usage().Stuart Henderson
'please fix' jmc
2008-01-14clear up pidfile(-p) option formOkan Demirmen
tweaked by jmc, ok henning
2008-01-13remove unused functionsCharles Longeau
from tobias@ ok miod@ tobias@
2008-01-12Check for expert mode/FFS inside get_fsize() and get_bsize() andKenneth R Westerback
reduce meat of editor_add() && editor_modify() to single if statements checking for != 0 from all get_* functions. No functional change.
2008-01-12has_overlap() now always tries to resolve overlaps because it is onlyKenneth R Westerback
called during -E initialization. Thus it no longer needs the 'resolve' parameter.
2008-01-12Tweak get_offset() so it does it's own free chunks to check theKenneth R Westerback
new offset being in a free area.
2008-01-12Change editor_countfree() to return the count rather than recording itKenneth R Westerback
in a semi-global. Call it whenever the count is needed rather than trying to make sure it is called anytime the value might change. Eliminates a bunch of now unnecessary *freep parameters and calls to editor_countfree().
2008-01-12Parameter 'new' to get_size() no longer used.Kenneth R Westerback
2008-01-12Introduce the function max_partition_size() to calculate the max sizeKenneth R Westerback
a partition can be without causing overlap. Use it to eliminate the need to check overlap in get_size() and to make the (c)hange command message more meaningful, i.e. mention max size allowed not the amount of total free space.
2008-01-12document the max size of FFS and FFS2 file systems plus some rewording;Otto Moerbeek
with and ok jmc@
2008-01-11Remove one level of epicycles by not looping in get_size() orKenneth R Westerback
get_offset() when the user enters an invalid value. Just abort the partition operation and return to the main prompt. Prevents users getting trapped because they don't know about ^D. Requested by deraadt@. Tweak an error message to remove ambiguity about what 'between x and y' means.
2008-01-11Don't allow (a)dd or (m)odify to create 0 length partitions. Don'tKenneth R Westerback
allow editing the fsize/bsize FFS values for FS_UNUSED partitions. ok (for at least the first bit) miod@ weingart@ beck@