summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* back out unintended changesam2008-12-151-30/+13
|
* move channel parsing to a getchannel routine so it can be reused to checksam2008-12-151-30/+29
| | | | the channel argument supplied to chanswitch
* fix handling of sku codes like country codessam2008-12-151-2/+6
|
* fix handling of unknown country codes; atoi doesn't return -1sam2008-12-151-2/+6
| | | | for an invalid string as I thought; so use strtol instead
* 0 is a potential ISO CC; use new NO_COUNTRY #define to identifysam2008-12-151-2/+2
| | | | | | when the CC is not set. Note NO_COUNTRY is set to 0xffff for now (must be 16 bits as ieee80211_regdomain struct defines sku's and cc's as uint16_t which may need fixing).
* o distinguish between adhoc and ahdemo modessam2008-12-152-17/+46
| | | | | | | o do not require 1/2 and 1/4 rate channels be present in the calibration list when doing a gsm regulatory change; the existing 900MHz cards are not self-identifying so there is no way (using the calibration channel list) to check
* Improve regdomain.xml parser:sam2008-12-152-30/+43
| | | | | | | | | | | | | o store XML_Parser in the state block so we can report line numbers for errors o complain about netband w/o mode o complain about unknown modes o complain about band w/o enclosing netband o complain about duplicate freqband o complain about unknown channel flags o complain about band w/o freqband's o complain about band w/o maxpower o complain about country w/o ISO cc o complain about country w/o regdomain reference
* Tiny wording nits.keramida2008-10-191-4/+5
| | | | MFC after: 1 week
* o Typo fixes.maxim2008-10-051-2/+2
| | | | | PR: docs/127866 Submitted by: Marius Korsmo
* add duplicate cmd entries for vlan and vlandev that are marked !clonesam2008-10-021-0/+3
| | | | | | so they can be used when not doing a create operation Reviewed by: ed
* Distinguish between cmd/parameters used for clone operations andsam2008-09-291-33/+43
| | | | | | | | | | | all others. Use this to disambiguate cmd line arguments that can be either clone params or regular parameters so, in particular, "bssid" again works as a regular parameter. While here leverage the above to improve the logic for flushing clone operations on the first !clone cmd line parameter. Reviewed by: jhay
* MIMO power save and RIFS; while here also update per-node state/flags for ampdusam2008-09-222-1/+72
|
* "ampdudensity -" is too subtle; use "NA" for any and accept it as a parametersam2008-09-221-2/+2
|
* check for undefined identifierssam2008-09-211-12/+59
|
* Add support in ifconfig to control the vlan hardware filter feature.jfv2008-08-283-5/+10
| | | | | Reviewed by: EvilSam and moi MFC after:1 week
* Fix typo.rpaulo2008-08-271-2/+2
|
* Fix channel parsing which was broken in r179958, the channel number may bethompsa2008-08-141-2/+4
| | | | suffixed with :flag and /width.
* Add sbuf_new_auto as a shortcut for the very common case of creating ades2008-08-091-1/+1
| | | | | | | completely dynamic sbuf. Obtained from: Varnish MFC after: 2 weeks
* recognize WPS ie'ssam2008-08-092-1/+84
| | | | | Submitted by: "Chuck Tuffli" <chuck@tuffli.net> MFC after: 1 week
* Move the grekey to its own file, ifconfig.c does not have interface specificthompsa2008-08-033-20/+99
| | | | | | code. Submitted by: sam
* change list wme to only print the channel parameters; tosam2008-08-022-38/+57
| | | | get channel+bss use -v
* don't silently exit if the regdomain.xml file is missingsam2008-08-021-1/+1
|
* add missing capability bitssam2008-08-011-2/+2
|
* correct description of how to clear a desired channelsam2008-07-301-6/+4
| | | | | Pointed out by: Chris Buechler MFC after: 1 week
* Ensure the channel is a number and not a range, the 'channel' command can bethompsa2008-06-231-1/+4
| | | | | easily mixed up with 'chanlist' and would give unexpected results by fixing the channel on the first number in the range.
* Add support for the optional key in the GRE header.thompsa2008-06-202-1/+31
| | | | | PR: kern/114714 Submitted by: Cristian KLEIN
* Update the lib/expat tree for the new v2.0.1 expat import. The bsdxml.hcokane2008-05-081-1/+1
| | | | | | | | | header is now in two parts: bsdxml.h and bsdxml_external.h, representing the expat.h and expat_external.h headers. Updated the info on the man page as well. Also, fixed a type-error in a printf in sbin/ifconfig/regdomain.c that would cause a compiler warning. Approved by: sam, phk
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-206-330/+2491
| | | | | | | | | | | Note this includes changes to all drivers and moves some device firmware loading to use firmware(9) and a separate module (e.g. ral). Also there no longer are separate wlan_scan* modules; this functionality is now bundled into the wlan module. Supported by: Hobnob and Marvell Reviewed by: many Obtained from: Atheros (some bits)
* Fix handling of create operation together with setting other parameters:sam2008-03-314-9/+42
| | | | | | | | | | | o mark cmds/parameters to indicate they are potential arguments to a clone operation (e.g. vlantag) o when handling a create/clone operation do the callback on seeing the first non-clone cmd line argument so the new device is created and can be used; and re-setup operating state to reflect the newly created device Reviewed by: Eugene Grosbein MFC after: 2 weeks
* explain that you must set a default transmit key for WEPsam2008-02-291-1/+7
| | | | | Submitted by: Jeremie Le Hen <jeremie@le-hen.org> MFC after: 1 week
* correct tx rate displayed by list sta: the reported legacy tx ratesam2008-02-031-4/+7
| | | | | | is still an index into the rate set and not (yet) the rate code Noticed by: JoaoBR
* fix list mac; broken in delta 1.48sam2008-02-031-3/+7
| | | | Noticed by: JoaoBR
* Wake On Lan (WOL) infrastructuresam2007-12-102-2/+25
| | | | | Submitted by: Stefan Sperling <stsp@stsp.name> Reviewed by: brooks
* Add an option to limit the number of source MACs that can be behind a bridgethompsa2007-11-042-6/+33
| | | | | | | | interface. Once the limit is reached packets with unknown source addresses are dropped until an existing host cache entry expires or is removed. Useful to use with the STICKY cache option. Sponsored by: miniSuperHappyDevHouse NZ
* sync with vap code base; updates for 11n support and somesam2007-11-021-495/+1125
| | | | | | | general code cleanups Reviewed by: thompsa, avatar MFC after: 1 week
* minor wireless-related correctionssam2007-11-021-10/+18
| | | | MFC after: 1 week
* Fix the module name matching to the drivers present in the kernel. Previouslythompsa2007-10-041-7/+14
| | | | | | | | | | | | it would return true on a partial match where it would think the edsc module was already present by having a positive match on 'ed'. This changes it so that it compares the full string including the nul terminators. This also fixes a buffer overflow in the ifkind variable where the length of the interface name in *argv wasnt checked for size. Reviewed by: brooks Approved by: re (gnn)
* 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)
* 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)
* 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>
* 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).
* 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
* 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.
* Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.thompsa2007-04-173-49/+49
| | | | | | | | | | | The name trunk is misused as the networking term trunk means carrying multiple VLANs over a single connection. The IEEE standard for link aggregation (802.3 section 3) does not talk about 'trunk' at all while it is used throughout IEEE 802.1Q in describing vlans. The lagg(4) driver provides link aggregation, failover and fault tolerance. Discussed on: current@
* Bump document date for new trunk commands.thompsa2007-04-101-1/+1
|
* Hook trunk(4) up to the build.thompsa2007-04-102-0/+18
|
OpenPOWER on IntegriCloud