summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* Change the ifr_media operation to only get its value and only setambrisko2005-01-271-79/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | its value once per ifconfig run. Use Sam's new callback operation to set it when everything is done. The purpose for this is that if you did something like ifconfig bge0 media 100baseTX mediaopt full-duplex multiple times it would end up causing the PHY to re-sync since it would send the IOCTLs: ifconfig bge0 media 100baseTX -mediaopt full-duplex ifconfig bge0 media 100baseTX mediaopt full-duplex This would cause the PHY to be updated twice even though there really wasn't any change since the check in sys/net/if_media.c would always fail. Caveat is that this doesn't fix the case of: ifconfig bge0 media autoselect etc. since in sys/net/if_media.c it forces an autoselect to go through the entire process in ifmedia_ioctl :-( : /* * If no change, we're done. * XXX Automedia may invole software intervention. * Keep going in case the the connected media changed. * Similarly, if best match changed (kernel debugger?). */ if ((IFM_SUBTYPE(newmedia) != IFM_AUTO) && (newmedia == ifm->ifm_media) && (match == ifm->ifm_cur)) return 0; Briefly looked at by: sam
* Sort sections.ru2005-01-181-13/+13
|
* Scheduled mdoc(7) sweep.ru2005-01-101-22/+26
|
* Fix special status reporting. Prior to the reorg there wassam2004-12-317-18/+44
| | | | | | | | | | | | | | | | | | | | | | | 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.
* o accept deftxkey as a synonym for weptxkey since that is what issam2004-12-311-1/+11
| | | | | | | printed for status (allows cut&paste) o accept undef for the deftxkey/weptxkey so you can reset state Requested by: phk
* recognize atheros information elementssam2004-12-311-0/+2
|
* always display the deftxkey for an 802.11 device if privacy is enabledsam2004-12-121-4/+5
|
* add a callback mechanism for code that wants to defer committing changessam2004-12-112-0/+33
| | | | | | 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-0814-1538/+3342
| | | | | | | | | | | | | | | | | | | | 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
* First there was an -m option.ru2004-11-061-3/+0
| | | | | | Then Peter killed it and made it the default. Then Brooks and Poul-Henning added it again. Then Ruslan fixed the manpage...
* Use a spare byte in struct if_data to store the structure size withoutbrooks2004-09-011-1/+4
| | | | | | | | | increasing it. Add code to ifconfig to use this size to find the sockaddr_dl after the struct if_data in the routing message. This allows struct if_data to grow (up to 255 bytes) without breaking ifconfig. Submitted by: peter
* Fix long standing mediaopt setting bugs seen on sparc64. Thoughyongari2004-08-091-6/+12
| | | | | | | | | | | | the bug exists in little-endian machine, it was not triggered due to the difference of memory ordering between little/big endian machines. Instead of relying on possibly modified value during function invokcations, use saved copy of ifr.ifr_addr.sa_family. Also add a comment at the top of ifconfig.c clarifying the issue so the bug won't re-appear. Approved by: jake Reviewed by: yar
* Bump the date, .Dd, since the document content has been changedyar2004-07-271-1/+1
| | | | | | in the previous commit. Pointed out by: ru
* Add two knobs to ifconfig(8), `vlanmtu' and `vlanhwtag',yar2004-07-262-0/+17
| | | | | | that provide control over the respective capabilities of an interface, reception of extended frames and hardware VLAN multiplexor.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* mdoc(7) policebms2004-06-141-2/+3
| | | | Submitted by: ru
* Wordsmith the BUGS section re: IPv6 link-local addresses.bms2004-06-141-7/+13
| | | | | PR: docs/66541 Submitted by: Michel Lavondes (with some cleanups/additions)
* Assorted markup, grammar, and spelling fixes.ru2004-05-171-22/+28
|
* For both ifconfig and route if we didn't get enough memory from theambrisko2004-04-301-2/+10
| | | | | | | | | | | prior sysctl due to the structure growing between calls try again. Also try again for deleting routes if things fail. We've seen route -f fail this way which does not actually flush all routes. This fixes it. It will whine but it will do the work. PR: 56732 Obtained from: IronPort
* Replace ROUNDUP/ADVANCE with SA_SIZEluigi2004-04-131-5/+1
|
* Document that -m also causes the capability list to be displayed.ru2004-04-111-1/+1
|
* Added the new interface capability option for drivers that implementru2004-04-112-2/+12
| | | | | | user-configurable polling(4) support. Make ifconfig(8) aware of it. Suggested by: luigi
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Fix an off-by-one error in the function used to input the ascii/hex strings.phk2004-04-041-4/+7
| | | | Be a little bit more helpful in error messages.
* add support for setting 802.11 rtsthreshold, transmit power,sam2004-03-304-1/+101
| | | | | | and 11g protection mode Reviewed by: imp (just code)
* The print mask's first part is the base, not the total number of bitru2004-03-121-1/+1
| | | | identifiers.
* Show the polling(4) flag on the interface.ru2004-03-121-1/+1
|
* Fixed a misspelling of 0 as NULL.bde2004-03-101-1/+1
|
* Look for both name and if_<name> strings in module metadata. Pseudo-deviceskan2004-02-271-1/+2
| | | | | | like tun are naming their modules using the 'if_; prefix and previous version of the code failed to detect their presence in the kernel, resulting in the same module being loaded twice.
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* We can cross-reference to vlan(4) as long asyar2004-02-211-15/+38
| | | | | | | | the corresponding manpage has been committed. The rest of "vlan" words, which are refering to the technology itself, should be capitalized. MFC after: 1 week
* The hardware tagging capability is set on the physicalyar2004-02-211-1/+1
| | | | | interface that is parent to a vlan(4) interface, not on the vlan(4) interface itself.
* Add ifconfig support for network interface renaming. In the process,brooks2004-02-042-3/+49
| | | | | | | | reorganize the printing of the interface name when using wildcard cloning so it is not printed if it we either immediately rename or destroy the interface. Reviewed by: ru
* Use memcpy plus a manual NUL termination when copying the interface namebrooks2004-01-311-3/+5
| | | | | | | from the sdl because strlcpy requires that the source string be NUL-terminated unlike strncpy. Submitted by: Peter Jeremy <PeterJeremy at optushome dot com dot au>
* Use IFNAMSIZ instead of a magic value for the length of an interfacebrooks2004-01-272-4/+5
| | | | | | | | 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.
* 802.11 mode bits are now masks; convert to suitsam2004-01-151-1/+1
|
* We want the length of the string, not the size of its pointer.brooks2003-11-011-1/+1
|
* Give wider types to sscanf to fix two warnings (u_short cannot be > 0xffff)peter2003-10-261-2/+2
| | | | | | | and to make sure that we catch oversized arguments rather than silently truncate them. I dont know if sscanf will reject an integer if it will not fit in the short return variable or not, but this way it should be detected.
* By popular demand, added the "static ARP" per-interface option.ru2003-10-012-1/+11
|
* o add support for setting 128-bit WEP keyssam2003-09-171-4/+7
| | | | | o use IEEE80211_KEYBUF_SIZE instead of magic numbers o distinguish between 40-, 104-, and 128-bit WEP keys when printing status
* o update for new 802.11 supportsam2003-06-281-2/+6
| | | | o fix channel command so channel - does what the man page says
* o correct mode request handlingsam2003-06-251-3/+6
| | | | | o add 802.11 alias support o suppress display of the default "mode autoselect" when showing the "phy mode"
* mdoc(7) police: fix more breakages from rev. 1.69.ru2003-05-141-6/+6
|
* Fix broken comment line introduced in rev 1.69.sheldonh2003-05-131-1/+1
| | | | Found with: nroff -mandoc ifconfig.8 > /dev/null
* Add media types and options for ATM. While on most ATM cards media cannotharti2003-04-291-0/+34
| | | | | | | | be changed, it is very convenient to be able to toggle SDH/Sonet, idle/unassigned cells and scrambled mode and to see the carrier state. Reviewed by: -arch (if_media.h definitions)
* document mode directivesam2003-04-281-2/+14
|
* add a "mode" directive to specify the operating mode for multi-mode devices;sam2003-04-283-3/+120
| | | | | this is mostly intended for use with multi-mode 802.11 devices that support some combination of 11a, 11b, and 11g
* Don't abuse module names to facilitate ifconfig module loading;mdodd2003-04-151-1/+1
| | | | | | such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
* Uncomment the description of the ipdst parameter, but refer to IPXtjr2003-03-081-9/+6
| | | | instead of NS.
* Kill #ifdef NS codepeter2003-03-051-72/+0
|
OpenPOWER on IntegriCloud