summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of create operation together with setting other parameters:sam2008-03-311-0/+3
| | | | | | | | | | | 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
* Remove IPX over IP tunneling pieces from ifconfig(8), omitted portion ofrwatson2007-06-131-1/+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>
* Update for revised 802.11 support:sam2007-06-111-0/+6
| | | | | | | | | | | | | | | | | | | | 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
* use getifaddrs from libc instead of private codesam2007-02-241-4/+3
| | | | | Reviewed by: bms MFC after: 1 month
* o replace special handling of clone operations by a clone callbacksam2006-07-091-2/+2
| | | | | | | 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
* Add a new flag '-k' to ifconfig(8), indicating that it is alright torwatson2005-07-141-0/+1
| | | | | | | | | | print potentially sensitive keying material to stdout. With the new 802.11 support, ifconfig(8) is now capable of printing 802.11 keys, and did by default for the root user, which is undesirable in some environments. Now it will not print keying material unless requested (and available to the user). MFC after: 1 week
* ISO C does not allow unnamed union members.stefanf2005-04-081-1/+1
|
* Fix special status reporting. Prior to the reorg there wassam2004-12-311-1/+10
| | | | | | | | | | | | | | | | | | | | | | | special-purpose code to display status for an interface for state that was not address-oriented. This status reporting was merged in to the address-oriented status reporting but did not work for link address reporting (as discovered with fwip interfaces). Correct this mis-merge and eliminate the bogus kludge that was used for link-level address reporting. o add an af_other_status method for an address family for reporting status of things like media, vlan, etc. o call the af_other_status methods after reporting address status for an interface o special-case link address status; when reporting all status for an interface invoke it specially prior to reporting af_other_status methods (since it requires the sockaddr_dl that is passed in to status separately from the rtmsg address state) o correct the calling convention for link address status; don't cast types, construct the proper parameter This fixes ifconfig on fwip interfaces.
* add a callback mechanism for code that wants to defer committing changessam2004-12-111-0/+3
| | | | | | until all the command line args have been processed Reviewed by: ambrisko
* Overhaul to cleanup some of the tangled logic that's grown over the years.sam2004-12-081-33/+91
| | | | | | | | | | | | | | | | | | | | o break per-address family support out into separate files o modularize per-address family and functional operations using a registration mechanism; this permits configuration according to which files you include (but beware that order of the files is important to insure backwards compatibility) o many cleanups to eliminate incestuous behaviour, global variables, and poor coding practices (still much more to fix) The original motivation of this work was to support dynamic addition of functionality based on the interface so we can eliminate the various little control programs and so that vendors can distribute ifconfig plugins that support their in-kernel code. That work is still to be completed. o Update 802.11 support for all the new net80211 functionality; some of these operations (e.g. list *) may be better suited in a different program
* add support for setting 802.11 rtsthreshold, transmit power,sam2004-03-301-0/+3
| | | | | | and 11g protection mode Reviewed by: imp (just code)
* Use IFNAMSIZ instead of a magic value for the length of an interfacebrooks2004-01-271-1/+1
| | | | | | | | name. Prevent the kernel from potentially overflowing the interface name variable. The size argument of strlcpy is complex because the name is not null-terminated in sdl_data.
* add a "mode" directive to specify the operating mode for multi-mode devices;sam2003-04-281-0/+1
| | | | | this is mostly intended for use with multi-mode 802.11 devices that support some combination of 11a, 11b, and 11g
* Rename ifconfig's "mac" argument to "maclabel" to prevent confusionrwatson2002-10-231-2/+2
| | | | | | | | | | regarding 802.1 MAC and Mandatory Access Control (MAC). Some potential for confusion remains further in other areas of the system regarding Message Authentication Codes (MAC). Requested by: wollman Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Teach ifconfig(8) how to print and set the MAC labels on networkrwatson2002-10-231-0/+2
| | | | | | | | | interfaces using the 'mac' argument. Without MAC support in the kernel, this does not change the behavior of ifconfig. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* When using interfaces that support if_media, the supported media list isphk2001-05-291-0/+1
| | | | | | | | | printed on a single, very long, and generally unreadable line. This isn't very useful. It's also really ugly and most of the time you don't care what media is supported anyway. PR: 27701 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Currently, each wireless networking driver has it's own control programphk2001-05-261-0/+14
| | | | | | | | | | | | despite the fact that most people want to set exactly the same settings regardless of which card they have. It has been repeatidly suggested that this configuration should be done via ifconfig. This patch implements the required functionality in ifconfig and add support to the wi and an drivers. It also provides partial, untested support for the awi driver. PR: 25577 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Grrr... botched remote commit. Let's try this again: vlan updates,wpaul1999-03-151-1/+6
| | | | take two.
* Clean up some more. Move parsing of sysctl iflist data into a singlepeter1997-05-101-2/+2
| | | | | | place rather than updating the main loop's index variables from within a subroutine and other revolting things like that. Move some more globals into local variables.
* Grumble.. My last patchup here didn't quite work either. I hate thispeter1997-05-101-4/+5
| | | | | | | program and it's use of global variables. Somehow, I managed to miss the most obvious case.. "ifconfig ed0 10.0.0.1" failed (no "inet") Submitted by: dfr
* Commit hooks for ifmedia support. It's optional in the Makefile, andpeter1997-05-041-0/+45
can be trivially disabled.
OpenPOWER on IntegriCloud