Commit Graph

194 Commits

Author SHA1 Message Date
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
dyoung 9f2359d605 ifconfig -v prints 802.11 statistics. ifconfig -v prints and zeroes
802.11 statistics.
2004-12-20 23:04:55 +00:00
itojun b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00
dsl 9d819ed558 Functions for converting media types to/from text are now in libutil. 2004-11-11 20:37:18 +00:00
dsl 57030cf931 More isdigit() calls that need (unsigned char) cast 2004-10-28 20:10:29 +00:00
dsl eef12d4ee1 De __P 2004-10-11 20:13:37 +00:00
dsl edfa669ef6 Remove all the caddr_t - mainly casts of the 3rd arg to ioctl() 2004-10-11 17:13:55 +00:00
yamt 230c4c9c74 err -> errx where appropriate. 2004-07-27 14:25:19 +00:00
mycroft 1e7044a4ca The change in revision 1.38 (in 1997!) was wrong. If we don't want the kernel
to automatically bring up interfaces, then we should move that code into
ifconfig(8) and out of the kernel, not cycle the interface up and down.  Fixes
PR 9400 -- ifconfig(8) was not working as documented.
2004-07-06 23:26:31 +00:00
wiz 7725807d73 Add an article. 2004-03-01 00:19:06 +00:00
perry 3900dd63b3 Change "nwid" to "ssid", list "nwid" as a synonym for "ssid", and
clean up the ssid explanation a bit (including mentioning that if you
want to use a hex ssid, you precede it with a 0x, which really needed
documenting.)
2004-03-01 00:16:24 +00:00
perry be009ae585 Very minimal changes to make "ssid" and "nwid" aliases, and make the
ssid print out as "ssid", not "nwid".
XXX Really, someone should go through and change around all the
variable names etc. to ssid, but not today.
2004-03-01 00:11:33 +00:00
wiz 028911b136 Drop trailing whitespace (hi perry! :) ). 2004-02-29 23:51:05 +00:00
perry d7493f9be2 update man page date. (hi wiz!) 2004-02-29 23:32:51 +00:00
perry 688c6af823 document that if you are using a hex wep key, you need to put 0x in
front of it.
2004-02-29 23:32:15 +00:00
perry 2e45f00a18 document "mode" -- taken from FreeBSD 2004-02-29 23:27:28 +00:00
itojun 566986e38d check strlcpy error. idea from Ryan McBride 2004-02-27 21:36:17 +00:00
dyoung abda32ca8b Add 'mode' option to change PHY media for 802.11 devices. Also,
display PHY mode. E.g., run an 802.11a (5GHz, 54Mbps max) access
point:

> ifconfig ath0 nwid my_access_point mode 11a mediaopt hostap
> ifconfig -m ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        nwid my_access_point
        powersave off
        bssid 00:05:5d:84:cc:6e chan 3
        address: 00:05:5d:84:cc:6e
        media: IEEE802.11 autoselect mode 11a hostap
        status: active
        supported IEEE802.11 media:
                media autoselect
                media autoselect mediaopt adhoc
                media autoselect mediaopt hostap
                media autoselect mediaopt monitor
                media autoselect mode 11a
                media autoselect mode 11a mediaopt adhoc
                media autoselect mode 11a mediaopt hostap
                media autoselect mode 11a mediaopt monitor
*snip snip*
2003-10-13 08:27:35 +00:00
agc 276d62f603 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
christos dffc5f5133 PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6 2003-06-11 19:51:31 +00:00
itojun fe09a0efcb use strlcpy 2003-05-17 23:03:28 +00:00
lukem 3b7c75cfba Change -b from skipping POINTTOPOINT|LOOPBACK to skipping ! BROADCAST.
Fixes my [bin/21604]
2003-05-17 00:48:13 +00:00
wiz 1745a4efd2 Combine no-argument options in SYNOPSIS. 2003-04-16 12:55:15 +00:00
perry 765e98ca6e Document the -v and -z flags. 2003-04-12 01:08:28 +00:00
perry d229e19ca4 Add an option (-z) like -v except that it clears the input/output
stats after printing them.
(Basically this just calls SIOCZIFDATA instead of SIOCGIFDATA).
Submitted by Jean-Edouard BABIN in PR bin/21078
However, he suggested using -c, and cgd (reasonably) noted that -z for
"zero" was probably more reasonable.
I've also changed the code very slightly.
2003-04-12 01:07:43 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant 00377ec504 New sentence, new line. 2002-09-30 07:37:09 +00:00
onoe e70c67bb57 Fix the option name 'channel' to 'chan' to be consistent with the source.
Add documents for '-chan' to unset the desired channel to associate.
2002-09-30 05:42:59 +00:00
onoe 4b4c894d3f Hide bssid/chan for 802.11 if not specified nor not associated.
Allow "-chan" to allow any channel to associate, it doesn't affect
create channel for IBSS/AP mode.
2002-09-30 05:38:13 +00:00
wiz 4016313db7 Grammar fixes. Bump Dd for recent additions. 2002-09-25 00:24:25 +00:00
thorpej c82ad7ea91 Add missing newline. 2002-09-23 00:10:28 +00:00
thorpej 3f89292591 New commands:
* bssid xx:xx:xx:xx:xx:xx -- set the desired BSSID of an 802.11
  interface.
* -bssid -- unset the desired BSSID of an 802.11 interface, so
  the interface will choose automatically (default).
* channel x -- set the channel (radio frequency) of an 802.11 interface.

Current BSSID and channel are now reported in the 802.11 status
display, if supported by the interface.

Above changes from David Young <dyoung@ojctech.com>, with some slight
changes by me (use ethers(3) functions rather than hand-parsing/printing
the 802.11 address).

Document bssid/-bssid/channel, and clean up markup of parentheticals
in the manual page.
2002-09-22 15:29:23 +00:00
christos 5b90483a76 use snprintb() 2002-09-20 21:21:53 +00:00
ross 8473dbb8b4 xref ifconfig.if(5) 2002-09-01 03:05:34 +00:00
jwise ad8bd5db78 Fix mandoc glitch in description of `eui64' command. 2002-08-06 19:29:35 +00:00
grant 6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
itojun e923169715 grab eui64 only from the same interface. 2002-06-14 09:12:08 +00:00
itojun 331dc975fb support "eui64" option (grab interface ID from link-local addr).
from: ww@styx.org
2002-06-14 09:01:59 +00:00
itojun 65eb0105f4 init variable before strtoul 2002-06-14 01:07:00 +00:00
itojun 5bcf2ac974 metric and mtu are u_long, not int. 2002-06-14 01:04:41 +00:00
itojun 0dcc61701e now "ifconfig tunnel" is usable for gre too, change wording slightly 2002-06-09 17:47:33 +00:00
matt 2ea027698b Add support to print interface counters (via SIOCGIFDATA) when the [new]
option -v is provided.
2002-05-23 21:38:01 +00:00
thorpej 177f0931bd Don't bother testing if a u_short is > 0xffff -- that test is always false. 2002-05-06 20:14:36 +00:00
itojun 2e7169447f use in_aliasreq for inet address manipulation, not ifaliasreq. they have
different alignment constraint.  [tests on 64bit arch wanted]
2002-04-25 09:39:17 +00:00
wiz 4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
lukem 9bf29de9d5 fix many -Wshadow warnings 2001-11-02 05:57:38 +00:00
atatat 70478477a0 Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.
2001-10-24 22:10:15 +00:00
bjh21 3821a9917d Use getnameinfo() to format AF_LINK addresses again. 2001-10-06 17:05:29 +00:00
bjh21 daa1982d02 Revert last change. getnameinfo() AF_LINK support is going away until I can
make it lint-clean.
2001-10-05 20:50:19 +00:00
bjh21 10237f4efc Use getnameinfo() to format AF_LINK addresses rather than doing it ourselves. 2001-10-04 23:12:22 +00:00