summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police:ru2002-01-091-0/+14
| | | | | | Restore (sorta) a useful piece of information that got lost in the previous delta -- an ability to specify /prefixlength after an IPv6 address.
* In the words of the submitter:dd2002-01-071-1/+1
| | | | | | | | | | | | The first "synopsis" example has a "[/prefixlength]" which shouldn't be there, since that stuff is part of the preceeding "address" as is explained in the description of "address". (The way it is now, 192.168.0.1/16/prefixlength would be a proper operand. Note that "prefixlength" is not mentioned by name anywhere.) PR: 32462 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Fix bugs in the structure for rx_frame by making gap length one byte andambrisko2001-12-311-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a packed array so sizeof work. This broke RFMON mode and passing up 802.11 packets. The Linux emulation code was derived from the open source Linux driver to maintain compatibility. LEAP support is added, hints from Richard Johnson. I've verified this locally with PC350v42510.img firmware. More bug fixing from Marco to fix long passwords. Change DELAYs in flash part of driver to FLASH_DELAY which uses tsleep so it doesn't look like your system died during a flash update. Install header files in /usr/include/dev/an Cleanup some ifmedia bugs add "Home" key mode to ifmedia and ancontrol. This way you can manage 2 keys a little easier. Map the home mode into key 5. Enhance ifconfig to dump the various configured SSIDs. I use a bunch of different ones and roam between them. Use the syntax similar to the WEP keys to deal with setting difference SSIDs. Bump up up the Card capabilities RID since they added 2 bytes to it in the latest firmware. Thankfully we changed it from a terminal failure so the card still worked but the driver whined. Some cleanup patches from Marco Molteni. Submitted by: Richard Johnson <raj@cisco.com> Marco Molteni <molter@tin.it> and myself Various checks: David Wolfskill <david@catwhisker.org> Reviewed by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Approved by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Obtained from: Linux emulation API's from Aironet driver.
* Move the WARNS attribute down so that it also applies to themike2001-12-051-1/+1
| | | | RELEASE_CRUNCH case.
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* MTU and metric are available with NET_RT_IFLIST.ru2001-12-031-22/+4
| | | | MFC after: 3 days
* Spelling police: sucessful -> successful.dd2001-11-241-1/+1
| | | | Submitted by: Anders Andersson <anders@codefactory.se>
* Spelling police: "more then" - "more than" where appropriate.dd2001-11-241-1/+1
|
* Back out previous commit.asmodai2001-11-151-2/+0
| | | | | | | | | This works for wi(4), but apparantly other wireless drivers seem to do the right thing. Submitter and yours truly both got Mislead(tm). Submitted by: udp <udp@sneakerz.org>
* Report ad hoc mode correctly.asmodai2001-11-151-0/+2
| | | | Submitted by: udp <udp@sneakerz.org>
* Cosmetic: Don't output a blank line if a driver providesyar2001-11-021-2/+1
| | | | | | | | no media status. PR: bin/30587 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> MFC after: 1 week
* When specifying an interface to ifconfig, first look up the interfacejlemon2001-10-171-25/+11
| | | | | | | | index, then retrieve statistics for that index, rather than retrieving all interfaces and then looking for a matching name. This allows the user to refer to an interface via an alias name. While I'm here, also perform a few assorted cleanups.
* o Reduce userland inclusion of kernel headers -- remove unneeded includerwatson2001-09-241-1/+0
| | | | | | of <sys/mbuf.h>. Reviewed by: jlemon
* Split hwcsum into rxcsum and txcsum components.jlemon2001-09-181-3/+5
|
* Teach ifconfig about the new interface capability words.jlemon2001-09-181-1/+43
|
* Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently addsdd2001-09-051-1/+1
| | | | | | | | | COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde
* ``create'' and ``destroy'' are command modifiers (.Cm), not flags (.Fl).yar2001-08-221-2/+2
|
* Actuall make plumb work in addition to create as per the manpage.brooks2001-08-171-1/+2
| | | | | PR: bin/29812 Submitted by: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br>
* mdoc(7) police: restore markup bit that got accidentally lost in rev. 1.44.ru2001-08-161-1/+1
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-2/+0
|
* Spelling.mckay2001-08-071-2/+2
|
* ifconfig if0 netmask xxx.xxx.xxx.0 didn't change the netmask.ume2001-07-261-1/+3
| | | | | PR: bin/28833 MFC after: 3 days
OpenPOWER on IntegriCloud