Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / mtest / mtest.8
1 .\"
2 .\" $FreeBSD: src/usr.sbin/mtest/mtest.8,v 1.5.2.2 2003/03/11 22:31:29 trhodes Exp $
3 .\"
4 .\" The following requests are required for all man pages.
5 .Dd December 15, 1996
6 .Os
7 .Dt MTEST 8
8 .Sh NAME
9 .Nm mtest
10 .Nd test multicast membership socket operations and ioctls
11 .Sh SYNOPSIS
12 .Nm
13 .Sh DESCRIPTION
14 The
15 .Nm
16 utility
17 is a small program for testing the multicast membership socket operations
18 and ioctls.  It accepts the following commands, interactively:
19 .Bl -tag -width "a ifname e.e.e.e.e.e" -compact -offset indent
20 .It Ic j Ar g.g.g.g Ar i.i.i.i
21 Join the IP group address
22 .Ar g.g.g.g
23 on the interface with address
24 .Ar i.i.i.i .
25 .Ar i.i.i.i
26 may be specified as 0.0.0.0 to use the default interface.
27 .It Ic l Ar g.g.g.g Ar i.i.i.i
28 Leave the IP group address
29 .Ar g.g.g.g
30 on the interface with address
31 .Ar i.i.i.i .
32 .It Ic a Ar ifname Ar e.e.e.e.e.e
33 Join the Ethernet group address
34 .Ar e.e.e.e.e.e
35 on interface
36 .Ar ifname .
37 .It Ic d Ar ifname Ar e.e.e.e.e.e
38 Leave the Ethernet group address
39 .Ar e.e.e.e.e.e
40 on interface
41 .Ar ifname .
42 .It Ic m Ar ifname Ar 1/0
43 Set or reset ALLMULTI mode on interface
44 .Ar ifname .
45 .It Ic p Ar ifname Ar 1/0
46 Set or reset promiscuous mode on interface
47 .Ar ifname .
48 .It Ic ?\&
49 List legal commands.
50 .It Ic q
51 Quit the program.
52 .El
53 .\" .Sh SEE ALSO
54 .Sh AUTHORS
55 .An Steve Deering
56 .Sh BUGS
57 The command parser is not very flexible.