$NetBSD$

Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that this notice is retained,
the conditions in the following notices are met, and terms applying
to contributors in the following notices also apply to Berkeley
Software Design, Inc.

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by
Berkeley Software Design, Inc.
4. Neither the name of the Berkeley Software Design, Inc. nor the names
of its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

PAO2 Id: cnwctl.8,v 1.1.1.1 1997/12/11 14:46:06 itojun Exp

.Dd January 5, 1997 .Dt CNWCTL 8 .Os .Sh NAME .Nm cnwctl .Nd display statistics and control Netwave AirSurfer PC Cards .Sh SYNOPSIS .Nm cnwctl .Op Fl d Ar domain .Op Fl i Ar interface .Op Fl k Ar scramble-key .Op Fl sS Op Ar rate .Sh DESCRIPTION The .Nm cnwctl utility is used to control Netwave AirSurfer PC Cards as well as display statistics. The following options are available: . l -tag -width indent t Fl d Set the domain of the card to .Ar domain . The domain must be between 0x000 and 0x1ff. The domains 0x000 through 0x0ff are for access to an add-hoc network. The domains 0x100 through 0x1ff are for access to a Netwave Access Point. The default domain is 0x000. A card may only talk to the access point in its domain, or other cards in its add-hoc domain. t Fl i Use .Ar interface as the interface rather than .Li cnw0 . t Fl k Set the scramble key to .Ar scramble-key . The scramble key must be between 0x0000 and 0xffff. Both the source and the destination must use the same scramble key in order to communicate. t Fl s Display statistics. When the optional argument .Ar rate (which must be the last argument to the end of the command line) is specified as a non-zero value, statistics will be displayed every .Ar rate seconds. At the top of each .Dq page of statistics, column labels will be displayed. The first row of statistics will be totals since boot, subsequent lines are deltas from the previous row. If .Ar rate is not specified, or is 0 (zero), a single page of statistics will be displayed. These statistics are more detailed and include: l -tag -width indent t domain The domain this card is part of. t rx Number of packets received. t rxoverflow Number of overflows detected. t rxoverrun Number of overruns detected. t rxcrcerror Number of CRC errors detected. Random noise can cause these errors. t rxframe Number of framing errors detected. t rxerrors Number of generic errors detected. t rxavail Number of times a packet was available. t tx Number of packets requested to be sent. t txokay Number of packets sent. t txabort Number of packets aborted (not sent within 9 tries). t txlostcd Number of times carrier detect was lost. t txerrors Number of generic transmit errors detected. t txretries Total number of retries. t Ar N Ns No x retries Number of packets which were retried .Ar N times. .El t Fl S Display status read from the hardware. This option is only available to the super user. The .Ar rate argument is used as with the .Fl s option. The following fields are displayed l -tag -width indent t link integrity field (lif) A 0 value implies no links. t connection quality (cq) Probably indicates the quality of the connection to the access point. t spu Unknown meaning. t link quality (lq) Probably indicated the quality of the link to the access point. t hhc Unknown meaning. t mhs Unknown meaning. t revision The revision numbers of the card. t id The ID of the card. .El .El .Sh SEE ALSO .Xr cnw 4