summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add the trunk(4) driver for providing link aggregation, failover and faultthompsa2007-04-101-0/+153
| | | | | | | | | | | | | | | | | tolerance. This driver allows aggregation of multiple network interfaces as one virtual interface using a number of different protocols/algorithms. failover - Sends traffic through the secondary port if the master becomes inactive. fec - Supports Cisco Fast EtherChannel. lacp - Supports the IEEE 802.3ad Link Aggregation Control Protocol (LACP) and the Marker Protocol. loadbalance - Static loadbalancing using an outgoing hash. roundrobin - Distributes outgoing traffic using a round-robin scheduler through all active ports. This code was obtained from OpenBSD and this also includes 802.3ad LACP support from agr(4) in NetBSD.
* don't display ssid cloaking status as "ssid HIDE", use the cmd linesam2007-03-301-2/+2
| | | | | | parameter like everything else MFC after: 2 weeks
* Correct the name of the 'proto' command.thompsa2007-03-291-1/+1
| | | | MFC after: 3 days
* Back out rev. 1.129 because it breaks the practice of auto-loadingyar2007-03-241-1/+3
| | | | | | | | hardware drivers. Unlike pseudo-device drivers, which just attach to the cloning framework and wait for "ifconfig create", h/w drivers create interfaces for installed cards as soon as loaded. The issue of devd(8) involuntarily reloading modules should be dealt with in a different way.
* Attempt to load the kernel module only if we are going to create ayar2007-03-121-3/+1
| | | | | | | | | new interface. In other cases loading the module is unwanted and can lead to ill side effects. One such effect found is as follows: "kldunload if_foo" tells the module to kill all its interfaces, which results in messages sent to devd; the module unloads. Then devd starts processing the messages, which ends up in a etc script running ifconfig fooX, which reloads the module.
* point-to-point address should come from ifa_dstaddrsam2007-03-091-1/+1
|
* o consistently check strlcpy resultsam2007-02-271-2/+10
| | | | o warn when we skip an interface because it's name is too long
* correct type to silence const complaintsam2007-02-271-1/+2
|
* unbreak create operation, must copy argument to global namesam2007-02-271-0/+1
| | | | Spotted by: des
* use getifaddrs from libc instead of private codesam2007-02-247-195/+116
| | | | | Reviewed by: bms MFC after: 1 month
* correct type definition of option routine callbacksam2007-02-171-1/+1
|
* remove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVEsam2007-02-171-3/+0
|
* Be explicit in examples about the correct grammar for 'alias' andbms2007-02-041-12/+27
| | | | | | | | | | | | | '-alias', and that 'add' and 'delete are in fact synonyms for these in the ifconfig(8) grammar. Use network prefixes explicitly specified in IETF RFCs for documentation purposes. (bz) PR: 102701 MFC after: 1 day See also: RFC 3330, RFC 3849 Submitted by: bz
* Backout revision 1.4; it is not verified as the correct fix for the PR.bms2007-02-031-1/+1
| | | | | | | A more correct fix has been committed to ifconfig(8). Submitted by: bz PR: 102701
* Add an EXAMPLES section to ifconfig(8), clearly showing how to configurebms2007-02-031-1/+42
| | | | | | | | | | IPv6 addresses in FreeBSD. See also: http://www.telscom.ch/index.php/downloads/configure_ipv6_features MFC after: 1 week PR: 102701 Obtained from: OpenBSD (partly, with edits)
OpenPOWER on IntegriCloud