summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* o Teach get_mac_addr_mask() to not silently accept incorrect MACmaxim2007-05-091-22/+38
| | | | | | | | | addresses. o Swap a couple of magic 6s by ETHER_ADDR_LEN. PR: bin/80913 Submitted by: Andrey V. Elsukov MFC after: 1 month
* Reduce diffs against fdisk/fdisk.8.nyan2007-05-091-158/+142
|
* - A partition number is allowed to 1-8.nyan2007-05-091-11/+5
| | | | | | - Remove non-exist -b flag. - Add reference to boot98cfg and newfs. - s/disklabel/bsdlabel/
* Add Apple HFS+ (0xAF) MBR partition type identificator.andre2007-05-061-0/+1
| | | | Submitted by: rpaulo (SoC2007 student)
* Correct some typos.pjd2007-05-061-2/+2
|
* Fix mdoc warnings.pjd2007-05-061-3/+1
|
* Add support for filtering on Routing Header Type 0 andbz2007-05-042-3/+25
| | | | | | | Mobile IPv6 Routing Header Type 2 in addition to filter on the non-differentiated presence of any Routing Header. MFC after: 3 weeks
* Do some cleanups (like freeing memory and closing file descriptors) beforepjd2007-05-011-6/+6
| | | | leaving the functions.
* o Add -p flag: print a slice table in fdisk configuration file format.maxim2007-04-302-4/+36
| | | | | | | | Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1. PR: bin/110182 Submitted by: Jukka A. Ukkonen MFC after: 1 month
* o Make ipfw(8) show rules with mac/mac-type options correctly.maxim2007-04-301-36/+17
| | | | | | | | | | | | | | | | | | | | Before: $ ipfw -n add 100 count icmp from any to any mac-type 0x01 00100 count icmp 0x0001 $ ipfw -n add 100 count icmp from any to any mac any any 00100 count icmp MAC any any any After: $ ipfw -n add 100 count icmp from any to any mac-type 0x01 00100 count icmp from any to any mac-type 0x0001 $ ipfw -n add 100 count icmp from any to any mac any any 00100 count icmp from any to any MAC any any PR: bin/112244 Submitted by: Andrey V. Elsukov MFC after: 1 month
* Fix a typo: argv -> argvpyar2007-04-301-1/+2
| | | | | | | | | | | | | | | | | | | | Rationale: We are interested in the current (last) element of the argv array there, not in its first element. The if construct is there because we want to avoid adding empty (zero-length) arguments to argv, so we just don't advance argvp if the current argument is empty, and it gets overwritten at the next iteration. Note that strsep(3) doesn't treat consecutive delim characters as a single separator, it returns empty fields between such characters, and it's up to the caller to handle them this or that way. Also add a comment that the argv array ends up null-terminated in any case (it's due to the design of the for loop) as an answer to a possible question why the whole argv isn't zero-filled. Submitted by: yongari Tested by: yongari MFC after: 3 days
* Improve reporting in recoverdisk a good deal.phk2007-04-231-12/+26
| | | | | Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> PR: 111630
OpenPOWER on IntegriCloud