summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Actually fully emulate NetBSD and print the media instance numbermarius2007-01-221-2/+3
| | | | | | | only for non-zero instances so the typical output for IFM_IEEE80211 type media doesn't overflow 80 columns. Requested by: sam
* - Display the media instance numbers and allow the user to set the activemarius2007-01-202-3/+32
| | | | | | | | one. This is based on NetBSD but unlike NetBSD this implementation prints the instance number for all media instances and doesn't skip it for the first one as I don't see a reason to suppress it except for the vague reason to preserve the output for single-instance configurations. - Fix some whitespace nits.
* Add initial support for 900MHz channels; still has some roughsam2007-01-151-7/+35
| | | | | | | edges but ifconfig ath0 list chan works and you can use ieee channel #'s to lock/select a channel. MFC after: 1 month
* 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.
* 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.
* 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'.
* 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
* 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
* 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>
* 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.
* 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
* Fix markup botched in previous commit.ru2006-10-101-2/+2
|
* Note that the -v option may be used to expand long SSIDs.trhodes2006-10-101-1/+8
| | | | | PR: 102118 Reviewed by: sam
* Correct some grammos.schweikh2006-10-021-3/+3
|
* Fix a typo in af_inet6.c such that IPv6 addresses may be deletedbms2006-09-251-1/+1
| | | | | | | | from interfaces. PR: bin/102701 Submitted by: George Mitchell MFC after: 3 days
* In setifcap() only set/unset those capabilities the interface actuallyandre2006-09-201-0/+1
| | | | supports.
* Markup fixes.ru2006-09-181-7/+8
|
* Fix octal representation of TSO4 and TSO6 bits in interface capabilitiesandre2006-09-081-1/+1
| | | | description.
* Make TSO (TCP segmentation offload) capabilities visible and accessible withandre2006-09-062-1/+20
| | | | | | | | | | 'ifconfig em0 tso' and 'ifconfig em0 -tso'. TSO for IPv4 and IPv6 is always enabled or disabled together. The driver may enable only one if it doesn't support both. Document 'tso' and '-tso' in the ifconfig(8) man pages. Sponsored by: TCP/IP Optimization Fundraise 2005
* (media_status): Factor common code between IFM_ETHER and IFM_ATM cases.thomas2006-08-221-21/+9
| | | | | | | | | (print_media_word, print_media_word_ifconfig): Remove unnecessary goto following test for null desc. PR: bin/102354 Submitted by: Ricardo Nabinger Sanchez <rnsanchez@gmail.com> MFC after: 1 week
* Restore the "plumb" compatibility command, which was lostyar2006-08-121-0/+1
| | | | due to the recent change by sam@ to clone operations in ifconfig(8).
OpenPOWER on IntegriCloud