Commit Graph

174 Commits

Author SHA1 Message Date
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
itojun
04e80984bf remove duplicated line in cmds[]. 2001-09-26 07:20:16 +00:00
thorpej
f7a04ba84f Add tcp4csum-rx and udp4csum-rx commands for interfaces that only
support TCP/UDP checksums on the in-bound direction.
2001-09-17 17:36:06 +00:00
itojun
4d4d43e300 snprintf return value audit. from deraadt 2001-08-19 01:27:43 +00:00
david
11680bf9c9 Correct style of a comment, and bad else {} scoping from my previous
commit.

Thanks to enami tsugutomo for pointing both out.
2001-08-09 01:25:35 +00:00
david
92d578c744 Cause multiple uses of alias, -alias, and delete to produce an error,
and exit.

Previously, combinations would produce unintended results, such as
deleting the primary IP on an interface, instead of deleting an specified
alias.
2001-08-08 21:22:35 +00:00
itojun
fdd3ee1f18 embed scopeid on scoped ipv6 address. sync with kame 2001-07-31 23:27:35 +00:00
itojun
a7005bd7d6 do not go over the end of memory region we are supposed to touch,
overrun on "prefixlen" operation.  there's no SEGV possibility.
2001-07-25 17:29:14 +00:00
onoe
c4eb8932f8 Add support of persistent key of IEEE 802.11 wireless LAN card.
Currently, only Aironet ("an") driver/card can be used.
     nwkey persist   (IEEE 802.11 devices only) Enable WEP encryption for IEEE
                     802.11-based wireless network interfaces with the persis-
                     tent key written in the network card.
     nwkey persist:key
                     (IEEE 802.11 devices only) Write the key to the persis-
                     tent memory of the network card, and enable WEP encryp-
                     tion for IEEE 802.11-based wireless network interfaces
                     with the key.
2001-06-21 13:36:24 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
thorpej
ca4d373730 Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces.  This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us.  In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software.  This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.

We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.

Note: hardware-assisted checksumming defaults to "off".  It is
enabled with ifconfig(8).  See the manual page for details.

Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.
2001-06-02 16:17:06 +00:00
itojun
cb58c8c6b6 make -A a default. present MAC adderss on all ifconfig operations. 2001-04-28 04:11:10 +00:00
itojun
7d54359fb0 assume the presense of getifaddrs(3). 2001-04-28 00:00:06 +00:00
itojun
59ba739cf6 sync usage() more to the reality. document alias/-alias. 2001-04-27 09:10:04 +00:00
itojun
be4c7a7c16 allow ifconfig to take "deprecated" and "-deprecated" for IPv6. sync with kame
sync usage() with reality.  take "up" and "down" outside of "[af ...],
as "up" and "down" are independent from interface address configuration.
2001-04-27 09:08:44 +00:00
itojun
db6f3bcf39 whitespace at EOL 2001-03-01 08:35:16 +00:00
itojun
b57caf4727 on "tunnel" subcommand, use specified address family. 2001-03-01 08:34:10 +00:00
christos
b58136d76c PR/12275:Kimmo Suominen: show -C in usage 2001-02-23 19:49:54 +00:00
itojun
1e48b7fbb5 add SIOC[SG]LIFPHYADDR ioctl. greatly simplify tunnel address settings.
sync with kame.  old ioctls are supplied but not recommended for new code.
2001-02-20 15:35:19 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos
f0cf3bcdfb fix nested externs 2001-02-04 20:05:20 +00:00