summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2009-02-09Add caveat that rebuild is not currently implemented on softraid.Marco Peereboom
2009-02-08Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. EspeciallyKenneth R Westerback
the multi-line banner announcing that the MBR is being changed. Also the listing of the partition table in 'fdisk -u'. Display a consistant message when the MBR is written. While here cleanup and shrink code without changing any semantics. Started with a diff posted on tech@ by Tobias Ulmer. "I like it" marco@ ok jsing@
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-02-06Remove bogus casts of integer constants SPPPIO[GS]DEFS to caddr_tAlexander Yurchenko
and fix typo while here. ok canacar@
2009-02-03Reflect MPLS kernel changes. Operations are stored now in rt_mpls field.Michele Marchetto
ok claudio@ laurent@
2009-02-01Let this compile with gcc2.Miod Vallat
2009-01-31write point-to-point in a consistent way.Igor Sobrado
jmc@ has provided a complete list of manual pages to be fixed, and suggested using uppercase (i.e., Point-to-Point) when discussing the protocol, and lowercase (point-to-point) otherwise. ok jmc@
2009-01-30If the "peer" address is not specified or derived from "to" forAlexander Bluhm
"ike" rules in ipsec.conf, the default peer is used. In theory ipsecctl -f ipsec.conf can configure the default peer for each "ike" entry. As isakmpd only supports one default peer, the last "ike" rule that uses a default peer wins. This configuration is then significant for all "ike" rules that use the default peer. Now a warning is printed if a later rule in ipsec.conf changes the configuration of the original default peer. This should be an error but that would break existing user configs. So only a warning is printed. ok hshoexer@, todd@
2009-01-29After checking that peer == NULL do not assign peer = NULL a fewAlexander Bluhm
lines later. No functional change. ok grunk@, hshoexer@
2009-01-29tweak previous;Jason McIntyre
2009-01-29Introduce -mplslabel to allow ipv4/ipv6 packets enter MPLS clouds.Michele Marchetto
This is also consistent with mplslabel in ifconfig(8). OK claudio@ laurent@
2009-01-29Improve logging:Hans-Joerg Hoexer
- in ipsec_delete_spi_list() a log_verbose is added, when a remote peer sends us a delete message for an SA. However, to avoid spamming the log when SAs are deleted during re-keying, I only log_verbose, when the soft timeout of the SA is not expired yet. Thus only deletion of live SAs gets logged. - in ipsec_decode_ids() I remove the additonal printing of IP-Adresses in hex as the addresses are already printed in CIDR. - while there, apply some KNF ok todd@, mpf@, bluhm@
2009-01-28Reflect MPLS kernel changes.Michele Marchetto
2009-01-28Allow to specify ike and flow explicitly without peer. The anyAlexander Bluhm
keyword as argument for the peer parameter will do that. An ike without peer creates the peer-default config. A flow without peer acquires a host-to-host SA. tested by grunk@, todd@, ok grunk@, hshoexer@, todd@
2009-01-28cleaning up my tree: trivial KNF and a comment fix.Hans-Joerg Hoexer
2009-01-28use claudios new rtsocket filters to restrict which messages on the routeDavid Gwynne
socket dhclient will get. ja ja claudio@
2009-01-28Remove some dead (#if 0) code.Hans-Joerg Hoexer
2009-01-27A warning text in ipsecctl was used twice. Make the messages uniqueAlexander Bluhm
for easier debugging. ok grunk@, hshoexer@, todd@
2009-01-26Mark multipath routes with P in the show command flags. Bummer that bothClaudio Jeker
M and m were already taken. OK henning@
2009-01-24improve indentation without wasting space on the install media;Igor Sobrado
make source code fit on 80-column displays; while here, remove superfluous comment sign. ok krw@
2009-01-24Improve comment about resolv.conf creation. Prodded by sobrado@.Kenneth R Westerback
2009-01-20Add support to isakmpd(8) and ipsecctl(8) to install SA's with aMarco Pfatschbacher
different source network than we have negotiated with a peer. This enables us to do nat/binat on the enc(4) interface. Very useful to work around rfc 1918 collisions. Manpage and testing by Mitja Muzenic. Thanks! OK hshoexer@, markus@. "I like it" todd@
2009-01-17Use different variables for the dump offset in blocks and the dump offsetMiod Vallat
in bytes; this allows us to get rid of many off_t casts, and ensures proper operation on very large swap partitions on 32 bit machines. From Pierre Riteau.
2009-01-11On *ppc disks shared with MacOS, walk the Apple partition map to find outMiod Vallat
the bounds of the OpenBSD area. Should prevent users from shooting themselves in the feet. ok krw@
2009-01-10Use the kernel set ifam_hdrlen so that ABI changes won't cause olderClaudio Jeker
binaries to stop working. OK krw@, michele@, henning@, dlg@
2009-01-08Reflect MPLS kernel changes.Michele Marchetto
ok claudio@
2009-01-06i saw the previous was wrong as soon as i committed it: put theJason McIntyre
built-in blurb in STANDARDS; we did once have a COMPATIBILITY section which we merged with STANDARDS, so i think this is appropriate. it certainly feels better than adding single sentences randomly to the end of text bodies.
2009-01-06document, consistently, those apps which also exist as built-insJason McIntyre
on certain shells; do not try to document changes between the implementations, but at least warn of their existence; diff from Ingo Schwarze
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
ok jmc@
2009-01-02Handle kernel core files larger than 2GB; ok dlg@Miod Vallat
2008-12-29Give ifb its own display type (be sure to make includes before rebuildingMiod Vallat
wsconsctl)
2008-12-29Some forms of inode corruption can make remsize and thus isize goOtto Moerbeek
negative and cause SEGVs. Handle this the same as an out of range blockno. ok jsg@ (also victim) pedro@ thib@
2008-12-24fox format string; ok tedu@Otto Moerbeek
2008-12-22Only warn about pfkey failures when errno is != EEXIST.Hans-Joerg Hoexer
This avoids warnings about already existing manual flows when ipsec.conf is reloaded. From Mitja Muzenic <mitja at muzenic dot net>, thanks!
2008-12-22mark log_fatal() and monitor_exit() as __dead, as they do not return.Hans-Joerg Hoexer
2008-12-16Use macros from route.h when mapping route priorities to names; theStuart Henderson
hardcoded values used here before were incorrect. ok claudio@
2008-12-15Reflect kernel changes. Labels are no more per link uniqueMichele Marchetto
and operations are now stored in rt_flags. This also simplify a lot the syntax. ok claudio@ laurent@
2008-12-15remove unused vars; damien@ ok.Federico G. Schwindt
2008-12-12ifconfig(8) part to make it possible to set an interface priority.Claudio Jeker
OK deraadt@
2008-12-12Use the hdrlen to skip over the header and to the sockaddrs instead of theClaudio Jeker
implied sizeof(struct rt_msghdr). Makes code more robust when userland and kernel are out of sync.
2008-12-07clean up find_bounds(), no binary change; 'dead initialisation' llvm/clang; ↵Constantine A. Murenin
ok krw millert
2008-12-07fix an 11-year-old typo in an if statement; 'null dereference' llvm/clang; ↵Constantine A. Murenin
ok millert
2008-12-01Back out previous; it broke specifying paritions sizes with decimals,Ray Lai
e.g. "0.5g".
2008-12-01Check for invalid integers passed getuint(); instead of getuint()Ray Lai
returning an error, just reprompt. If there is an error reading from stdin, use the old (default) value. Shrinks fdisk a few bytes! OK deraadt.
2008-11-29Explain how /32 changes the address type to IPV4_ADDR_SUBNET. From MitjaHans-Joerg Hoexer
Muzenic (mitja at muzenic dot net), many thanks!
2008-11-28Make growfs refuse to run on a dirty filesystem, and set the filesystem toChris Kuethe
dirty on the way out so that users are forced to run fsck afterwards. The manpage politely suggested that the filesystem be checked after growing it; change it to say that fsck is required.
2008-11-24remove trailing "\n" from errx()Kevin Steves
2008-11-17Fix printing of partner link aggregation group ID.Marco Pfatschbacher
OK brad@
2008-11-14When parsing v4 addresses mark them as network addressesHans-Joerg Hoexer
(IPV4_ADDR_SUBNET) when they contain a '/'. This allows to choose between IPV4_ADDR and IPV4_ADDR_SUBNET by adding "/32", ie. "a.b.c.d" vs. "a.b.c.d/32". This helps to interop with other IKE implementations. From Mitja Muzenic <mitja at muzenic dot net>, thanks! Idea supported by markus@ and jdixon@.
2008-11-14when describing options that can be passed to mount:Jason McIntyre
- keep the examples in this page and fstab(5) in sync - give an equivalent fstab(5) entry to show how options are specified these changes are necessary because of the differing ways we pass options to mount. while here, zap some .Tn ok otto