summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* fixup list station support:sam2006-08-101-4/+23
| | | | | | o add sanity check to avoid possible looping o use intended api for IEEE80211_IOC_STA_INFO o when operating in sta mode get the sta info for the ap
* add beacon miss threshold controlsam2006-07-262-1/+29
| | | | | Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 2 weeks
* o replace special handling of clone operations by a clone callbacksam2006-07-094-100/+127
| | | | | | | mechanism o change vlan cloning to use callback and pass all vlan parameters on create using the new SIOCREATE2 ioctl o update vlan set logic to match existing practice
* remove display of the ERP ie from the list sta output (it's alwayssam2006-06-232-5/+55
| | | | | | zero); replace it with station capabilities MFC after: 1 month
* Import interface groups from OpenBSD. This allows to group interfaces inmlaier2006-06-193-1/+208
| | | | | | | | order to - for example - apply firewall rules to a whole group of interfaces. This is required for importing pf from OpenBSD 3.9 Obtained from: OpenBSD (with changes) Discussed on: -net (back in April)
* Print pfsync interface status if either syncpeer or syncdev is configured.glebius2006-06-061-6/+11
|
* Document the rest of the 802.11 capability flags.scottl2006-04-081-0/+18
|
* Extend coverage of the MK_IPX build option to the following:ru2006-03-201-1/+3
| | | | | | | | | | | | | | | | | | | | | - <netipx> headers [1] - IPX library (libipx) - IPX support in ifconfig(8) - IPXrouted(8) - new MK_NCP option New MK_NCP build option controls: - <netncp> and <fs/nwfs> headers - NCP library (libncp) - ncplist(1) and ncplogin(1) - mount_nwfs(8) - ncp and nwfs kernel modules User knobs: WITHOUT_IPX, WITHOUT_IPX_SUPPORT, WITHOUT_NCP. [1] <netsmb/netbios.h> unconditionally uses <netipx> headers so they are still installed. This needs to be dealt with.
* There is no IFF_POLLING flag anymore.glebius2006-03-121-1/+1
|
* Revert to setting vlan and vlandev parametes synchronously, as soonyar2006-03-091-0/+9
| | | | | | | | | | | | | | | as both have been read from the command line. Still use the callback, but this time only to verify that both vlan and vlandev have been found on the command line. This should allow for control over the relative order of processing parameters, which is needed to satisfy some caveats of the if_vlan driver. E.g., MTU cannot be changed on a vlan interface until it's attached to its parent. PR: bin/94028 Reviewed by: ru MFC after: 3 days
* explain what list chan displayssam2006-02-271-4/+23
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud