summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo: effected -> affectedrse2007-01-021-1/+1
| | | | Submitted by: Gordon Stratton <tsr2600 (at) gmail (dot) com>
* Fix wrong markup and some wordsmithing.hrs2006-12-311-72/+84
| | | | Submitted by: ru
* Summer of Code 2005: improve libalias - part 2 of 2piso2006-12-292-9/+1022
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With the second (and last) part of my previous Summer of Code work, we get: -ipfw's in kernel nat -redirect_* and LSNAT support General information about nat syntax and some examples are available in the ipfw (8) man page. The redirect and LSNAT syntax are identical to natd, so please refer to natd (8) man page. To enable in kernel nat in rc.conf, two options were added: o firewall_nat_enable: equivalent to natd_enable o firewall_nat_interface: equivalent to natd_interface Remember to set net.inet.ip.fw.one_pass to 0, if you want the packet to continue being checked by the firewall ruleset after being (de)aliased. NOTA BENE: due to some problems with libalias architecture, in kernel nat won't work with TSO enabled nic, thus you have to disable TSO via ifconfig (ifconfig foo0 -tso). Approved by: glebius (mentor)
* Fix an off-by-one which could mean writing beyond the end of the arraybz2006-12-291-2/+2
| | | | | when copying the interface name. This code part should probably be rewritten.
* - Fix markup.ru2006-12-291-42/+44
| | | | | | | | | - Somewhat improve wording. - Change the layout of the EXAMPLES section so that descriptions come before example, as in most other manpages. - Fix a bad example that edits a label using a `c' partition.
* Add half/quarter rate 11a channel support:sam2006-12-271-15/+25
| | | | | | | | o add hack/nonstandard channel mapping for public safety band channels to mirror kernel (temporary until we have proper 802.11 state) o change ieee80211_mhz2ieee to take channel flags (unused right now) While here do some minor fixups like using IEEE80211_IS_CHAN_ANYG.
* Remove duplicate "clear" subcommand.ceri2006-12-211-4/+0
| | | | | PR: docs/106947 Submitted by: TAOKA Fumiyoshi
* Clear full-duplex when half-duplex flag is set. This actually makesjkim2006-12-191-2/+6
| | | | | 'mediaopt half-duplex' working as it should. It is now equivalent of '-mediaopt full-duplex'.
* For consistency use 'unsigned' instead of 'u_int'.pjd2006-12-183-4/+4
|
* Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctlpjd2006-12-153-4/+4
| | | | | | | | returns u_int. Reported by: Javier Martín Rueda <jmrueda@diatel.upm.es> PR: amd64/91799 MFC after: 3 days
* - Document -u, -i, and the difference between them better.ru2006-12-121-15/+13
| | | | - Remove some historical notes about "future" decisions.
* These days P2P means peer-2-peer (also well known from serveral filesharingthompsa2006-12-112-16/+16
| | | | | | | protocols) while PointToPoint has been PtP links. Change the variables accordingly while the code is still fresh and undocumented. Requested by: bz
* Style: Shorten a couple of lines with u_int and u_long.imp2006-12-101-5/+3
|
* fix handling of ssid "-" etc; we're writing 1 byte past thesam2006-12-091-2/+3
| | | | | | | | end of the result buffer Noticed by: Sepherosa Zieha Reviewed by: cperciva MFC after: 2 weeks
* Document the following change in behavior:ru2006-12-081-2/+2
| | | | | | : fdisk.c revision 1.74 : date: 2004/06/14 07:21:19; author: phk; state: Exp; lines: +3 -3 : Make fdisk initialize the first instead of the last slice by default.
* Pass a char buffer parameter with name "errmsg" to nmount().rodrigc2006-12-071-1/+4
| | | | | | | For filesystems which use vfs_mount_error() to log an error, this char buffer will be populated with a string error message. If nmount() fails, in addition to printing out strerror(errno), print out the "errmsg" populated by vfs_mount_error().
* Add a "-D" flag to restore which puts it into "degraded" mode. Thisdwmalone2006-12-055-22/+104
| | | | | | | | | | | | | | | | | | makes restore less efficient, but it makes a bigger effore to read corrupted dumps. Specifiacally, when in degreded mode: 1) Restore shifts the input by 1 byte if it sees a problem, rather than one tape block. 2) It doesn't assume the inodes are stored in ascending order. 3) It turns some panics into warning printfs. We also verify some fields more carefully than before. There's probably more a degreded mode could do, but this seems to help a lot. Approved by: imp, iedowse, mckusick MFC after: 3 weeks
* o Correct a function prototype.maxim2006-12-041-1/+1
|
* It's confusing to say that "Command Queueing Supported" just basedmjacob2006-12-031-3/+2
| | | | | upon the scsi flag validity field. Instead, just say "Command Queueing Enabled" when it is- otherwise remain mute.
* Many, many thanks to Masanori OZAWA <ozawa@ongs.co.jp>rodrigc2006-12-023-96/+290
| | | | | | | | | | | | | and Daichi GOTO <daichi@FreeBSD.org> for submitting this major rewrite of unionfs. This rewrite was done to try to solve many of the longstanding crashing and locking issues in the existing unionfs implementation. This implementation also adds a 'MASQUERADE mode', which allows the user to set different user, group, and file permission modes in the upper layer. Submitted by: daichi, Masanori OZAWA Reviewed by: rodrigc (modified for minor style issues)
* Pass a string buffer named "errmsg" to nmount().rodrigc2006-11-291-2/+4
| | | | | | | | This will allow the NFS mount code to return a string error message in addition to returning an error integer value. Reviewed by: mohans MFC after: 1 month
* Deduce the "fstype" parameter to pass to nmount() by looking atrodrigc2006-11-291-2/+8
| | | | | | | | the "_nfs" part of argv[0]. This should facilitate unifying mount_nfs and mount_nfs4 into one binary. MFC after: 1 month Reviewed by: mohans
* - Revert signedness type changes to "struct vmtotal"; by makingru2006-11-281-15/+11
| | | | | | | | | | | | | | them unsigned I made the possible overflows hard to detect, and it only saved 1 bit which isn't principal, even less now that the underlying issue with the total of virtual memory has been fixed. (For the record, it will overflow with >=2T of VM total, with 32-bit ints used to keep counters in pages.) - While here, fix printing of other "struct vmtotal" members such as t_rq, t_dw, t_pw, and t_sw as they are also signed. Reviewed by: bde MFC after: 3 days
* Add descriptions for p2p and autop2p.thompsa2006-11-271-0/+20
|
* Bump .Dd for r1.127.ceri2006-11-271-1/+1
|
* Show the MAC address cache size and timeout.thompsa2006-11-271-14/+22
|
* Keep the command name the same as the values display name in ifconfig.thompsa2006-11-272-2/+2
|
* Sync with the OpenBSD port of RSTPthompsa2006-11-271-39/+53
| | | | | | | | | - use flags rather than sperate ioctls for edge, p2p - implement p2p and autop2p flags - define large pathcost constant as ULL - show bridgeid and rootid in ifconfig Obtained from: Reyk Floeter <reyk@openbsd.org>
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.ru2006-11-261-6/+2
| | | | | - Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile.
* Fix the format specifier suitable for uintmax_t.ru2006-11-231-5/+5
|
* Detach mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs,rodrigc2006-11-221-2/+0
| | | | | mount_linprocfs, and mount_std from the build. They are no longer used, and can be replaced with "mount -t fstype".
* Cross-reference nextboot(8).jkoshy2006-11-222-0/+2
| | | | MFC after: 3 days
* Increase WARNS to 3.rodrigc2006-11-211-1/+1
|
* Fix last element of nc_protos[] array to appease GCC.rodrigc2006-11-211-1/+1
|
* Convert mount_nfs from old mount(2) API to new nmount(2) API.rodrigc2006-11-211-1/+11
| | | | Reviewed by: mohans
* - Fix types of "struct vmmeter" members so they are unsigned.ru2006-11-201-12/+13
| | | | | | | - Fix overflow bugs in sysctl(8), systat(1), and vmstat(8) when printing values of "struct vmmeter" in kilobytes as they don't necessarily fit into 32 bits. (Fix sysctl(8) reporting of a total virtual memory; it's in pages too.)
* Fix debugging output of '-d', to more accurately reflect ifrodrigc2006-11-141-1/+4
| | | | | | | we exec an external mount program, or just call nmount() to mount a filesystem. Noticed by: kris
* Add a new address cache type called sticky. On an interface marked sticky anythompsa2006-11-092-0/+28
| | | | | | | | address learned by the bridge is made permanent, the address will not age out and most importantly will not migrate to another interface. This can be used to stop mac address poisoning or clients roaming in much the same way as static entries without the hassle of preloading the table.
* Document the -l option.ceri2006-11-072-2/+16
| | | | | Reviewed by: brd Approved by: ru (mentor)
* - I forgot to bump a date.danger2006-11-051-1/+1
| | | | Approved by: keramida (mentor), trhodes (mentor) (implicit)
* - add some files to FILES section and provide their descriptiondanger2006-11-051-0/+16
| | | | | | | | - reference devfs.conf and devfs.rules in SEE ALSO section Approved by: keramida (mentor), trhodes (mentor) PR: docs/103347 MFC-after: 3 days
* Sync up with rhyolite routed 2.31 which fixes the handling of varargs.trhodes2006-11-051-12/+15
| | | | | | | Remove -p from usage, it's gone completely now. PR: 83387 Submited by: arved
* Remove the -C option as it does more harm than good. To be fullyru2006-11-032-80/+15
| | | | | | | | | | | | | | | | | | | | compatible, it would have to (at least): - support the "compat-compat" -T option, - *not* support the -l, -O, and -v options, - default to soft updates being disabled. Worse, the compatibility mode makes it impossible to mount_mfs(8) a file system from fstab(5) with soft updates disabled (-S). [1] Now, the only difference when called as "mount_mfs" or "mfs" (as opposed to "mdmfs") is that the file mode of the mount point is set by default to 01777. All options available to mdmfs(8) are also available to mount_mfs(8); the -C option is still recognized but ignored for backward compatibility. PR: bin/98860 [1] MFC after: 2 weeks
* Bump .Dd for -f|-F.ceri2006-11-022-2/+2
|
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEmjacob2006-11-021-93/+143
| | | | | | as the default. Reviewed by multitudes.
* Now, that we have gjournal in the tree add possibility to configurepjd2006-11-014-14/+39
| | | | | | gmirror and graid3 in a way that it is not resynchronized after a power failure or system crash. It is safe when gjournal is running on top of gmirror/graid3.
* G_TYPE_NONE was replaced with G_TYPE_BOOL.pjd2006-11-011-2/+2
|
* Fix -fstrict-aliasing warning.ru2006-11-011-1/+3
|
* Fix powerpc build.pjd2006-11-011-0/+1
| | | | Reported by: Peter Grehan <grehan@freebsd.org>
* Bring in support for the Rapid Spanning Tree Protocol (802.1w).thompsa2006-11-012-35/+181
| | | | | | | | | | RSTP provides faster spanning tree convergence, the protocol will exchange information with neighboring switches to quickly transition to forwarding without creating loops. The code will default to RSTP mode but will downgrade any port connected to a legacy STP network so is fully backward compatible. Reviewed by: syrinx Tested by: syrinx
OpenPOWER on IntegriCloud