summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Document the rxcsum and txcsum commands.ru2003-02-271-0/+11
| | | | Submitted by: jlemon
* Add missing #if USE_IF_MEDIA/#endif.mdodd2003-01-231-1/+4
|
* fix link_status() in non-Ethernet casefjoe2003-01-221-4/+6
| | | | MFC after: 1 week
* mdoc(7) police: markup, spelling.ru2002-11-251-8/+6
| | | | Also fixed a critical bug made in revision 1.62 by phk@.
* update vlandev description; vlan code now auto-recognizes devices thatsam2002-11-151-6/+4
| | | | support h/w tagging
* o display new interface capability bitssam2002-11-151-1/+1
| | | | | | o capitilize capability bit strings for consistency Approved by: re
* Remove a line that reflected behavior that does not actually exist.chris2002-10-281-1/+0
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Document the `maclabel' command.chris2002-10-251-0/+7
| | | | | Obtained from: TrustedBSD Project Sponsored by: Network Associates Laboratories
* Report the MONITOR bit.phk2002-10-241-1/+1
|
* Rename ifconfig's "mac" argument to "maclabel" to prevent confusionrwatson2002-10-233-9/+9
| | | | | | | | | | 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-234-0/+116
| | | | | | | | | 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
* Don't crash when the user feeds us nonesense in the form:dd2002-10-021-3/+4
| | | | | | | ifconfig IF ether WHATEVER -alias PR: 42544 Submitted by: Mike Makonnen <makonnen@pacbell.net>
* Add the "Monitor" interface flag.phk2002-09-272-0/+13
| | | | | | | | | | Setting this flag on an ethernet interface blocks transmission of packets and discards incoming packets after BPF processing. This is useful if you want to monitor network trafic but not interact with the network in question. Sponsored by: http://www.babeltech.dk
* Implement user-setable promiscuous mode (a new `promisc' flag for ifconfig(8)).sobomax2002-08-192-1/+7
| | | | | | | | | Also, for all interfaces in this mode pass all ethernet frames to upper layer, even those not addressed to our own MAC, which allows packets encapsulated in those frames be processed with packet filters (ipfw(8) et al). Emphatically requested by: Anton Turygin <pa3op@ukr-link.net> Valuable suggestions by: fenner
* Fix last-minute typo which breaks the world.sobomax2002-08-191-1/+1
| | | | Submitted by: many
* Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoidsobomax2002-08-181-2/+3
| | | | | | | breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's. Reviewed by: -hackers, -net
* mdoc(7) police: KAMEism in rev. 1.56, nits in rev. 1.58.ru2002-08-131-3/+4
|
* Warn that hex keys are the most portable.imp2002-08-121-0/+3
| | | | | Submitted by: Gregory Bond <gnb@itga.com.au> Pr: 40872
* The .Nm utilitycharnier2002-07-061-7/+10
|
* Add eui64 option which fills interface index (lowermost 64bit ofume2002-06-152-0/+42
| | | | | | | | an IPv6 address) automatically. This should obsolete prefix(8). Obtained from: NetBSD MFC after: 2 weeks
* Reword the ``alias'' description slightly. We must specify a non-conflictingbrian2002-05-111-2/+3
| | | | | | netmask - not necessarily 0xffffffff. MFC after: 3 days
* De-__P, use ansi function definitionsimp2002-04-184-268/+117
|
* Turn "ether" address family into a generic "link" familyru2002-03-272-72/+56
| | | | | | | | | that could be used to set/get arbitrary length link level addresses. Alias "lladdr" parameter and "ether" family to the new "link" family for backward compatibility. PR: bin/31476 MFC after: 1 week
* Remove 'register' keyword.obrien2002-03-201-11/+11
| | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
* mdoc(7) police: kill whitespace at eol.ru2002-03-151-1/+1
|
* Some style(9) whitespace fixes and a correction to the copyright.brooks2002-02-281-22/+24
|
* Do not disable IPv6 and vlan support when RELEASE_CRUNCH is defined.luigi2002-02-151-2/+0
| | | | | We do support already IPv6 in the RELENG_4 boot floppies, and vlan might be desirable as well.
* Note what the default address_family is.dd2002-02-111-0/+2
| | | | | PR: 32463 Submitted by: Gary W. Swearingen
OpenPOWER on IntegriCloud