summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* o Fix bug I introduced in the previous commit (ipfw set extention):maxim2007-08-261-3/+3
| | | | | | | | | | | | pack a set number correctly. Submitted by: oleg o Plug a memory leak. Submitted by: oleg and Andrey V. Elsukov Approved by: re (kensmith) MFC after: 1 week
* document hw.realmemdanger2007-08-241-0/+1
| | | | | | | Submitted by: cnst@ (Constantine A. Murenin) Sponsored by: Google Summer of Code 2007 Approved by: re@ (bmah) MFC after: 1 week
* - Sweep the boot(8) man page after addition of boot.config(5).danger2007-08-181-15/+8
| | | | | Reviewed by: keramida Approved by: re (kensmith)
* Expand the data structure returned by the ATA RAID status ioctl to includejhb2007-08-131-19/+31
| | | | | | | | | detailed status on each of the backing subdisks. This allows userland to see which subdisks are online, failed, missing, or a hot spare. MFC after: 1 week Approved by: re (bmah) Reviewed by: sos
* o You have to reboot the system after tuning softupdates on the rootmaxim2007-08-121-1/+3
| | | | | | | filesystem on to make SU work. Approved by: re (hrs) MFC after: 1 week
* Fix fscking gjournaled root file system: root file system is already mountedpjd2007-08-101-19/+36
| | | | | | | | | read-only, so we can't simply exit right after calling gjournal_check(), instead we need to ask about super block reload. Submitted by: Niki Denev <niki@totalterror.net> PR: misc/113889 Approved by: re (kensmith)
* Rename option IPSEC_FILTERGIF to IPSEC_FILTERTUNNEL.bz2007-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | Also rename the related functions in a similar way. There are no functional changes. For a packet coming in with IPsec tunnel mode, the default is to only call into the firewall with the "outer" IP header and payload. With this option turned on, in addition to the "outer" parts, the "inner" IP header and payload are passed to the firewall too when going through ip_input() the second time. The option was never only related to a gif(4) tunnel within an IPsec tunnel and thus the name was very misleading. Discussed at: BSDCan 2007 Best new name suggested by: rwatson Reviewed by: rwatson Approved by: re (bmah)
* Remove references to mpsafenet. This option no longer exists.csjp2007-08-041-14/+1
| | | | Approved by: re@ (bmah)
* Add a bridge interface flag called PRIVATE where any private port can notthompsa2007-08-012-0/+26
| | | | | | | | | | | | | | | communicate with another private port. All unicast/broadcast/multicast layer2 traffic is blocked so it works much the same way as using firewall rules but scales better and is generally easier as firewall packages usually do not allow ARP blocking. An example usage would be having a number of customers on separate vlans bridged with a server network. All the vlans are marked private, they can all communicate with the server network unhindered, but can not exchange any traffic whatsoever with each other. Approved by: re (rwatson)
* First round of cleanups.brueffer2007-07-242-24/+37
| | | | Approved by: re (blanket)
* Introduce Danny Braniss' iSCSI initiator, version 2.0.99. Please read thescottl2007-07-2413-0/+2999
| | | | | | | | included man pages on how to use it. This code is still somewhat experimental but has been successfully tested on a number of targets. Many thanks to Danny for contributing this. Approved by: re
* Disconnect netatm from the build as it is not MPSAFE and relies onrwatson2007-07-141-4/+6
| | | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith)
* updates for 802.11-related parameterssam2007-07-091-10/+198
| | | | | Reviewed by: thompsa Approved by: re (hrs)
* Allow the LACP state to be queried from userland which at the moment is thethompsa2007-07-051-3/+45
| | | | | | | actor and partner peer info. Print out the active aggregator and per port data in verbose mode from ifconfig. Approved by: re (mux)
* Remove the -DFAST_IPSEC from Makefiles again.bz2007-07-051-1/+1
| | | | | | | | | This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous. Approved by: re (rwatson)
* Use the -n flag on ifconfig so that dhclient does not cause the kernel modulethompsa2007-07-031-8/+9
| | | | | | | to be reloaded when the interface is torn down. Reviewed by: brooks Approved by: re (kensmith)
* Link pf 4.1 to the build:mlaier2007-07-031-0/+2
| | | | | | | | - move ftp-proxy from libexec to usr.sbin - add tftp-proxy - new altq mtag link Approved by: re (kensmith)
* Commit IPv6 support for FAST_IPSEC to the tree.gnn2007-07-019-19/+18
| | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re
* - Remove UMAP filesystem. It was disconnected from build three years ago,rafan2007-06-259-580/+1
| | | | | | | and it is seriously broken. Discussed on: freebsd-arch@ Approved by: re (mux)
* o Make ipfw set more robust -- now it is possible:maxim2007-06-182-41/+131
| | | | | | | | | | | | - to show a specific set: ipfw set 3 show - to delete rules from the set: ipfw set 9 delete 100 200 300 - to flush the set: ipfw set 4 flush - to reset rules counters in the set: ipfw set 1 zero PR: kern/113388 Submitted by: Andrey V. Elsukov Approved by: re (kensmith) MFC after: 6 weeks
* In the previous changeset a cast of myminor to u_int weredelphij2007-06-141-1/+1
| | | | | | | | | | | removed, which will cause problems on architectures where longs are longer than ints, for instance, "mknod foo c 0 0xffff00ff" would fail in such cases. Use a proper cast instead. Prompted by: bde
* Add the vlan tag to the bridge route table. This allows a vlan trunk to bethompsa2007-06-131-2/+3
| | | | | | | bridged, previously legitimate traffic was not passed as the bridge could not tell that it was on a different Ethernet segment. All non-tagged traffic is treated as vlan1 as per IEEE 802.1Q-2003
* Remove IPX over IP tunneling pieces from ifconfig(8), omitted portion ofrwatson2007-06-133-13/+0
| | | | | | | | | | | | | | | previous commit: Remove IPX over IP tunneling support, which allows IPX routing over IP tunnels, and was not MPSAFE. The code can be easily restored in the event that someone with an IPX over IP tunnel configuration can work with me to test patches. This removes one of five remaining consumers of NET_NEEDS_GIANT. Approved by: re (kensmith) Spotted by: Artem Naluzhny <tutat nhamon dot com dot ua>
* WARNS=6delphij2007-06-131-11/+6
|
* Add recoverdisk to the base system, it is far too useful to livephk2007-06-121-0/+1
| | | | | | in obscurity over in src/tools. (Repocopied)
* Catch up with variable name changes in struct lagg_protos.thompsa2007-06-121-10/+10
|
* Reset the pointer to the ioctl buffer after it gets changed.thompsa2007-06-121-0/+2
|
* Add reporting and toggling of TCP LRO (large receive offload) support toandre2007-06-112-1/+11
| | | | ifconfig(8).
* Exclude inet_addr.c from the build.cognet2007-06-111-1/+1
| | | | | | | It only provides inet_aton(), which is already provided by the libc. This causes multiple symbol definitions when linking statically. Reviewed by: darrenr
* When we return from a "show" function without printing anything exceptbde2007-06-111-6/+6
| | | | | | | | | | | | a warning, return 1 instead of 0 to indicate that we didn't print anything, so that top-level callers don't print a spurious newline. This is mainly to fix output formatting when stderr is redirected. It also helps in some cases when stderr is interleaved with stdout, depending on the details of the interleaving (this program has the usual null explicit support for syncing stderr with stdout). Return 1 instead of -1 after printing the "malloc failed" warning, since the return value is boolean.
* Update for revised 802.11 support:sam2007-06-114-171/+959
| | | | | | | | | | | | | | | | | | | | o revised channel handling support; ifconfig now queries the kernel to find the list of available channels and handles channel promotion; channel attributes can be specified as part of the channel; e.g. 36:a for channel 36 in 11a (as opposed to turbo A or HT A) o use channel list to map between freq and IEEE channel #; this eliminates all knowledge of how the mapping is done and fixes handling of cases where channels overlap in the IEEE channel # space but are distinct in the frequency+attributes space (e.g. PSB) o add new knobs: bgscan, ff (Atheors fast frames), dturbo (Atheros Dynamic Turbo mode), bgscanidle, bgscanintvl, scanvalid, roam:rssi11a, roam:rssi11b, roam:rssi11g, roam:rate11a, roam:rate11b, roam:rate11g (roaming parameters), burst, doth (forthcoming 11h support) o print contents of WME, ATH, WPA, RSN, information elements with -v option o print signal strength in dBm o print noise floor in dBm o add list txpow to print tx power caps/channel o change default channel display in status to be more informative
* Some improvements to the int-type printing code based on suggestions by bde.dwmalone2007-06-101-17/+13
|
* Fix a number of WARNS, including printf, constness and unsigned comparisondwmalone2007-06-101-12/+13
| | | | warnings.
* Some style improvements suggested by bde, including removing andwmalone2007-06-101-37/+36
| | | | | unused include, adding parens for return and sizeof and renaming, adding some missing whitespace and sorting some variables.
* Use common code for printing ints and longs by coppying the sysctldwmalone2007-06-041-42/+42
| | | | | | value into a variable of the right type and then printing it via an intmax_t. This makes avoids some duplication and makes it easy to add a new integer format Q for printing things of type CTLTYPE_QUAD.
* Merge IPFilter 4.1.23 back to HEADdarrenr2007-06-041-22/+22
| | | | See src/contrib/ipfilter/HISTORY for details of changes since 4.1.13
* I understood the MLINK part incorrectly, it should be the other way aroundremko2007-06-011-1/+0
| | | | | | also remove the init mlink to securelevel. Discussed with and sharing pointyhat with: brueffer
* The newfs_msdos utility does not store the boot signature in thetrhodes2007-05-311-6/+6
| | | | | | | | correct place on large sector disks. The boot signature should be at offset 0x1fe in the BPB; newfs_msdos currently stores it 2 bytes from the end of the sector. Taken from: NetBSD
* Check fdopen return value.kevlo2007-05-281-0/+6
| | | | Reviewed by: phk
* Fix the online usage for the "dump" command.ru2007-05-241-1/+1
|
* Add the -n flag for disabling automatic module loading, this will be used bythompsa2007-05-222-2/+18
| | | | rc.d to stop it reloading the network module on unload.
* Force the alignment of the chars arrays, as they are casted later tocognet2007-05-211-1/+1
| | | | | | structs. gcc 4.2 doesn't do it by default, and that results in unaligned access on arm.
* Add an example which shows how mdconfig(8) can be usedkeramida2007-05-181-1/+7
| | | | | | | | to mount an ISO 9660 CD image file. PR: 112691 Submitted by: Warren Block, wblock at wonkity.com MFC after: 3 days
* Fix the construction of the gctl_req that got broken by mymarcel2007-05-171-1/+3
| | | | | | | | | | | | previous commit and that introduced optional parameters. Existing classes (like geli(8)) use empty strings by default and expect the parameter to be passed to the kernel as such. Also, the default value of a string argument can be NULL. Fix both cases by making the optional parameter conditional upon gc_argname being set and making sure to test for NULL before dereferencing the pointer. Reported by: brueffer@
* Bump G_LIB_VERSION to reflect the ABI change.marcel2007-05-161-1/+1
| | | | Pointed out by: pjd@
* Add gpart(8).marcel2007-05-1517-91/+512
| | | | | | | In order to support gpart(8), geom(8) needs to support a named argument. Also, optional string parameters are a requirement. Both have been added to the infrastructure. The former required all existing classes to be adjusted.
* -n is used by newfs to tell "do not generate a .snap directory" instead ofremko2007-05-141-4/+4
| | | | | | | | specifying rotational-positions, reflect that in the command arguments. PR: bin/110178 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua> Approved by: imp (mentor)
* Replace incomprehensive description of -m by much clearer text from OpenBSD,pav2007-05-121-2/+3
| | | | | | | | | with the exception of one word. PR: docs/112465 Submitted by: naddy Obtained from: OpenBSD MFC after: 1 week
* Another merging from sbin/fdisk/fdisk.8.nyan2007-05-101-68/+75
| | | | | PR: 109929 Submitted by: Alex Kozlov
* Integrate the Camellia Block Cipher. For more information see RFC 4132gnn2007-05-092-0/+2
| | | | | | | and its bibliography. Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> MFC after: 1 month
OpenPOWER on IntegriCloud