aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* Reword the ``alias'' description slightly. We must specify a non-conflictingBrian Somers2002-05-111-2/+3
| | | | | | | | | netmask - not necessarily 0xffffffff. MFC after: 3 days Notes: svn path=/head/; revision=96403
* De-__P, use ansi function definitionsWarner Losh2002-04-184-268/+117
| | | | Notes: svn path=/head/; revision=95005
* Turn "ether" address family into a generic "link" familyRuslan Ermilov2002-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 Notes: svn path=/head/; revision=93281
* Remove 'register' keyword.David E. O'Brien2002-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?) Notes: svn path=/head/; revision=92806
* mdoc(7) police: kill whitespace at eol.Ruslan Ermilov2002-03-151-1/+1
| | | | Notes: svn path=/head/; revision=92335
* Some style(9) whitespace fixes and a correction to the copyright.Brooks Davis2002-02-281-22/+24
| | | | Notes: svn path=/head/; revision=91454
* Do not disable IPv6 and vlan support when RELEASE_CRUNCH is defined.Luigi Rizzo2002-02-151-2/+0
| | | | | | | | We do support already IPv6 in the RELENG_4 boot floppies, and vlan might be desirable as well. Notes: svn path=/head/; revision=90671
* Note what the default address_family is.Dima Dorfman2002-02-111-0/+2
| | | | | | | | PR: 32463 Submitted by: Gary W. Swearingen Notes: svn path=/head/; revision=90508
* mdoc(7) police:Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=89146
* In the words of the submitter:Dima Dorfman2002-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> Notes: svn path=/head/; revision=88989
* Fix bugs in the structure for rx_frame by making gap length one byte andDoug Ambrisko2001-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. Notes: svn path=/head/; revision=88748
* Move the WARNS attribute down so that it also applies to theMike Barcroft2001-12-051-1/+1
| | | | | | | RELEASE_CRUNCH case. Notes: svn path=/head/; revision=87376
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+1
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* MTU and metric are available with NET_RT_IFLIST.Ruslan Ermilov2001-12-031-22/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=87274
* Spelling police: sucessful -> successful.Dima Dorfman2001-11-241-1/+1
| | | | | | | Submitted by: Anders Andersson <anders@codefactory.se> Notes: svn path=/head/; revision=86881
* Spelling police: "more then" - "more than" where appropriate.Dima Dorfman2001-11-241-1/+1
| | | | Notes: svn path=/head/; revision=86875
* Back out previous commit.Jeroen Ruigrok van der Werven2001-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> Notes: svn path=/head/; revision=86407
* Report ad hoc mode correctly.Jeroen Ruigrok van der Werven2001-11-151-0/+2
| | | | | | | Submitted by: udp <udp@sneakerz.org> Notes: svn path=/head/; revision=86403
* Cosmetic: Don't output a blank line if a driver providesYaroslav Tykhiy2001-11-021-2/+1
| | | | | | | | | | | no media status. PR: bin/30587 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> MFC after: 1 week Notes: svn path=/head/; revision=85853
* When specifying an interface to ifconfig, first look up the interfaceJonathan Lemon2001-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. Notes: svn path=/head/; revision=85075
* o Reduce userland inclusion of kernel headers -- remove unneeded includeRobert Watson2001-09-241-1/+0
| | | | | | | | | of <sys/mbuf.h>. Reviewed by: jlemon Notes: svn path=/head/; revision=83888
* Split hwcsum into rxcsum and txcsum components.Jonathan Lemon2001-09-181-3/+5
| | | | Notes: svn path=/head/; revision=83637
* Teach ifconfig about the new interface capability words.Jonathan Lemon2001-09-181-1/+43
| | | | Notes: svn path=/head/; revision=83626
* Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently addsDima Dorfman2001-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 Notes: svn path=/head/; revision=83112
* ``create'' and ``destroy'' are command modifiers (.Cm), not flags (.Fl).Yaroslav Tykhiy2001-08-221-2/+2
| | | | Notes: svn path=/head/; revision=82145
* Actuall make plumb work in addition to create as per the manpage.Brooks Davis2001-08-171-1/+2
| | | | | | | | PR: bin/29812 Submitted by: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br> Notes: svn path=/head/; revision=81862
* mdoc(7) police: restore markup bit that got accidentally lost in rev. 1.44.Ruslan Ermilov2001-08-161-1/+1
| | | | Notes: svn path=/head/; revision=81774
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-131-2/+0
| | | | Notes: svn path=/head/; revision=81586
* Spelling.Stephen McKay2001-08-071-2/+2
| | | | Notes: svn path=/head/; revision=81229
* ifconfig if0 netmask xxx.xxx.xxx.0 didn't change the netmask.Hajimu UMEMOTO2001-07-261-1/+3
| | | | | | | | PR: bin/28833 MFC after: 3 days Notes: svn path=/head/; revision=80392
* Fix a stupid bug which resulted in a blank line in the status output ifBrooks Davis2001-07-251-8/+4
| | | | | | | | | WEP is supported, but not keys are set. MFC after: 3 days Notes: svn path=/head/; revision=80315
* Dike out the IPX bits if RELEASE_CRUNCH is defined.David E. O'Brien2001-07-212-2/+23
| | | | Notes: svn path=/head/; revision=80057
* mdoc(7) police: fix markup.Ruslan Ermilov2001-07-051-101/+159
| | | | Notes: svn path=/head/; revision=79319
* Support network device cloning via create and destroy options.Brooks Davis2001-07-022-12/+162
| | | | | | | | | Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=79105
* Sync with recent KAME.Hajimu UMEMOTO2001-06-112-12/+232
| | | | | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks Notes: svn path=/head/; revision=78064
* ARP works on networks other than Ethernet.Dima Dorfman2001-06-021-2/+5
| | | | | | | | | PR: 22062 Submitted by: Christian Weisgerber <naddy@mips.inka.de>, Brooks Davis <brooks@one-eyed-alien.net> Notes: svn path=/head/; revision=77611
* Mention the 'ether' parameter.Dima Dorfman2001-06-021-0/+4
| | | | | | | | | PR: 23767 Submitted by: Maxime Henrion <mux@qualys.com>, Brooks Davis <brooks@one-eyed-alien.net> Notes: svn path=/head/; revision=77610
* When using interfaces that support if_media, the supported media list isPoul-Henning Kamp2001-05-294-28/+136
| | | | | | | | | | | | 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> Notes: svn path=/head/; revision=77385
* Forgot to cvs add these two files for the previous commit.Poul-Henning Kamp2001-05-261-0/+520
| | | | Notes: svn path=/head/; revision=77218
* Currently, each wireless networking driver has it's own control programPoul-Henning Kamp2001-05-265-3/+182
| | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=77217
* Cosmetics: .Dl -> .Li.Ruslan Ermilov2001-05-071-1/+1
| | | | Notes: svn path=/head/; revision=76326
* Let ifconfig(8) catch up with the new functionality whereJesper Skriver2001-05-051-1/+11
| | | | | | | | | one can specify addresses and netmask in CIDR notation. Submitted by: Dima Dorfman <dima@unixfreak.org> Notes: svn path=/head/; revision=76295
* Implement slash/CIDR notation for IPv4 and IPv6 addresses.Jesper Skriver2001-05-041-0/+29
| | | | | | | | | | MFC after: 1 week Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=76276
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74531
* if no address is setted, do not call ioctl(SIOCAIFADDR)Hajimu UMEMOTO2001-02-211-1/+1
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=72805
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-7/+22
| | | | Notes: svn path=/head/; revision=71895
* mdoc police.Ben Smithurst2001-01-221-2/+3
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=71386
* Add 'netrange' parameter to 'range' command and fix a couple of typos.Ben Smithurst2001-01-201-3/+3
| | | | | | | | PR: 23984 Submitted by: Jimmy Olgeni <olgeni@uli.it> Notes: svn path=/head/; revision=71303
* Add missing && which absense stops 'make world'Andrey A. Chernov2000-11-301-1/+1
| | | | Notes: svn path=/head/; revision=69424