summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Even if there are no valid keys in metadata, but provider is attachedpjd2005-09-101-5/+5
| | | | | | | we can still use setkey subcommand. MFC after: 3 days Found by: regression tests
* Avoid updating resolv.conf when no changes have actually occured.brooks2005-09-081-0/+10
| | | | Submitted by: ume
* When we fail to aquire a lease, our lease expires without a sucessfulbrooks2005-09-081-0/+1
| | | | | | | | | renewal, or we lose link, be more forceful about clearing interface state so another interface that connects to the same network has a chance of working. This doesn't address attemping to connect to both at once, but appears to allow unplugging from a wired interface and then inserting a wireless card that associates with an AP bridged to the same LAN.
* Moved descriptions of securelevels from init(7) to security(7).garys2005-09-031-62/+5
| | | | | | | | | | Files used both "securelevel" and either "secure level" or "security level"; all are now "security level". PR: docs/84266 Submitted by: garys Approved by: keramida MFC after: 3 days
* When we supersed the subnet-mask, write the forced value to the leasebrooks2005-09-021-10/+14
| | | | | | file. This is what the ISC client does. Submitted by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* Add support for setting GPT partition labels. The partitions to bemarcel2005-09-015-33/+343
| | | | | | | | | | | | labeled are selected in the same way as with the remove command. Update the manpage to have the selection options described for the label command and referenced to it from the remove command. The label can be specified on the command line with the -l option or read from a file with the -f option. In both cases, the label is assumed to be encoded in UTF-8. PR: ia64/83124 MFC after: 1 week
* Dot the i's: multiple devices can be specified, so the usage shouldmarcel2005-09-013-5/+7
| | | | have ellipsis following the device.
* Add a comment before the statement that is responsible for themarcel2005-09-011-0/+2
| | | | | removal of the GPT entry. There's a bit of code around that one statement that it's good to have it stand out a bit more.
* Document the -l and -u options of the show command.marcel2005-08-311-1/+15
|
* o Replace unicode16() by utf8_to_utf16().marcel2005-08-314-19/+139
| | | | | | | | o Introduce utf16_to_utf8(). o Add option -l to the show command to display the GPT label instead of the friendly partition type. o Add option -u to the show command to suppress the friendly output and print th raw UUIDs instead.
* /* -> /*- for license.marcel2005-08-3111-11/+11
|
* Introduce a new helper function check_search() derived for res_hnok tobrooks2005-08-301-0/+56
| | | | | | | | | | | | | | | check the domain-name parameter according to the rules for "search" strings as documented in resolv.conf(5). Specifically, the string must be no more than 256 bytes long and contain no more than six valid domain names separated by white space. The previous unchecked values could result in a mangled resolv.conf file which could effectively deny access to local sites. This is not a security issue as rogue dhcp servers could already do this without sending invalid strings. Reviewed by: cperciva MFC After: 3 days
* When using files as backing stores for devices, and the user has requested thecsjp2005-08-301-0/+11
| | | | | | | | | | | | | device be created read+write, check to see if the backing store is read only through the use of the access(2) system call. If this check fails returning EACCES, EPERM or EROFS then gracefully downgrade the access to read only. Also print a warning message to stderr, informing the user that the access mode they requested is not available. This behavior used to be handled by md(4) but was changed in revision 1.154 Discussed with: pjd, phk, Dario Freni <saturnero at freesbie dot org> Reviewed by: phk
* This script was helpful during development, but has no reason tomarcel2005-08-301-11/+0
| | | | be kept alive. Removal is long overdue as it is.
* Don't print the total number of partitions removed now that we printmarcel2005-08-301-7/+1
| | | | | | | the name of the partitions that we remove. A summary is unnecessary and even makes parsing of the output more difficult. MFC after: 1 week
* Extend utility to allow recovering single file from the deffectivesobomax2005-08-291-12/+28
| | | | | | media. MFC after: 2 weeks
* Make it clear that the .ko extention of a module to be loadedkeramida2005-08-271-3/+10
| | | | | | | | is optional. PR: docs/85356 Submitted by: Julien Gabel <jpeg@thilelli.net> MFC after: 3 days
* As with NO_CRYPT, don't try to compile geli(8) when NO_OPENSSL is definedmarius2005-08-271-1/+1
| | | | | | either. MFC after: 1 week
* The $medium string often contains quoted values with spaces in them (ssids,brooks2005-08-261-6/+6
| | | | | | | for example). Follow the example of the ISC script and wrap ifconfig calls using $medium in eval "..." so this works. Reported by: iedowse
* Update Document.takawata2005-08-261-0/+3
|
* In read_string(), when the last character was a backslash, unincrementbrooks2005-08-261-0/+1
| | | | | | the output index instead of keeping what ever trash was in the buffer. Reported by: iedowse
* Use a more robust, grep-free command to get the interface of the currentbrooks2005-08-261-2/+1
| | | | | | default route. Submitted by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* Don't and/remove a route to our assigned IP through 127.0.0.1. Itbrooks2005-08-261-4/+4
| | | | | | | serves no apparent purpose (we commented this out ages ago in the ISC scripts) and cases problems with some ADSL setups. Reported by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* MFOpenBSD rev 1.9: fix a buffer overflow when processing config filebrooks2005-08-241-1/+1
| | | | | | | lines that are exactly 81 characters in length. Obtained from: OpenBSD MFC After: 3 days
* Add __FBSDID to all .c files in dhclient to aid in determining filebrooks2005-08-2316-4/+48
| | | | versions when dealing with user problems.
* FreeBSD unconditionally supports write filters now.csjp2005-08-231-2/+0
|
* By default, when doing crypto work in software, start as many threadspjd2005-08-211-1/+3
| | | | | | as we have active CPUs and bind each thread to its own CPU. MFC after: 3 days
* Remove reference to raid(4), the RAIDframe manual page, which wassimon2005-08-201-1/+0
| | | | | | | | deleted a while ago. PR: docs/85142 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> MFC after: 3 days
* Allow to change number of iterations for PKCS#5v2. It can only be usedpjd2005-08-192-23/+64
| | | | | | when there is only one key set. MFC after: 3 days
* Move function for calculating number of bits into more central place.pjd2005-08-193-6/+14
| | | | | | I want to use it so more. MFC after: 3 days
* Add the ability to specify the boot2 serial console speed iniedowse2005-08-181-4/+22
| | | | | | | | /boot.config or on the "boot:" prompt line via a "-S<speed>" flag, e.g. "-h -S19200". This adds about 50 bytes to the size of boot2 and required a few other small changes to limit the size impact. This changes only affects boot2; there are further loader changes to follow.
* Update manual page (now dedicated kernel thread is always started).pjd2005-08-171-2/+0
| | | | MFC after: 3 days
* Clarify how the 'channel' argument should look like and add anbrueffer2005-08-161-2/+7
| | | | | | | | | example on how to obtain information on devices on an ata channel. PR: 84676 Submitted by: Kevin Oberman <oberman@es.net> Jeremie Le Hen <jeremie@le-hen.org> MFC after: 3 days
* Implement a new feature for ping(8) - sweeping pings. In a sweepingglebius2005-08-152-7/+117
| | | | | | | | | ping ICMP payload of packets being sent is increased with given step. Sweeping pings are useful for testing problematic channels, MTU issues or traffic policing functions in networks. PR: bin/82625 Submitted by: Chris Hellberg <chellberg juniper.net> (with some cleanups)
* Attempt to improve the logic for automatically sizing partitionsiedowse2005-08-141-5/+62
| | | | | | | | | | | | to take into account the new default of starting the first partition after the boot blocks instead of at sector 0. If you used automatic sizing when the first partition did not start at 0, you would get an error that the automatically sized partition extended beyond the end of the disk. Note that there are probably still many more complex cases where automatic sizing and placement will not work (e.g. non-contiguous or out of order partitions).
* Unfortunately dlerror(3) returns string, so there is no clean way topjd2005-08-141-11/+12
| | | | | | | | | | ignore "no such file" errors only, which I wanted to do. Because of this I ignored all other errors on dlopen(3) failure as well, which isn't good. Fix this situation by calling access(2) on library file first and ignore only ENOENT error. This allows to report all the rest of dlopen(3) errors. MFC after: 3 days
* Don't treat failure to find the operator GID as a fatal error; thisiedowse2005-08-141-4/+9
| | | | | made it impossible to use newfs (and mdmfs) when /etc/group is missing and /etc is read-only.
* When keys were configured without passphrase, number of iterations inpjd2005-08-141-0/+4
| | | | | | | | | | metadata is equal to -1. if we then wanted to attach provider (or change keys) and forget about '-p' flag it failed on assertion (quite ok, without assertion it could call PKCS#5v2 with 4294967295 iterations). Instead of failing on assertion, remind about '-p' flag. MFC after: 3 days
* Document two missed if_bridge commands 'addr' and 'static'.thompsa2005-08-141-0/+7
| | | | | | Noticed by: Michal Mertl Approved by: mlaier (mentor) MFC after: 3 days
* add list mac and mac:kick supportsam2005-08-132-10/+98
| | | | | Submitted by: Michal Mertl (original version) MFC after: 2 weeks
* * Add dynamic sysctl for net.inet6.ip6.fw.bz2005-08-132-3/+89
| | | | | | | | | | | | | * Correct handling of IPv6 Extension Headers. * Add unreach6 code. * Add logging for IPv6. Submitted by: sysctl handling derived from patch from ume needed for ip6fw Obtained from: is_icmp6_query and send_reject6 derived from similar functions of netinet6,ip6fw Reviewed by: ume, gnn; silence on ipfw@ Test setup provided by: CK Software GmbH MFC after: 6 days
* GELI doesn't need cryptodev.pjd2005-08-121-1/+0
| | | | MFC after: 2 days
* Add code for Ext2FS and ReiserFS labels recognition.pjd2005-08-121-0/+6
| | | | | | Submitted by: Stanislav Sedov <stas@310.ru> PR: kern/84638 MFC after: 1 week
* The libedit update made a const cast necessary.stefanf2005-08-071-1/+1
|
* Fix status to report status from the given array.sos2005-08-051-3/+8
|
* Use socklen_t where appropriate.stefanf2005-08-051-2/+3
|
* Garbage collect useless variables.stefanf2005-08-052-4/+1
|
* Use the C99 syntax for designated initialisers.stefanf2005-08-051-8/+8
|
* Fix commen typos.stefanf2005-08-031-4/+4
|
* Add missing check for the NO_CRYPT build option.ru2005-08-021-0/+2
| | | | Reported by: Alexander Polakov
OpenPOWER on IntegriCloud