diff options
author | fenner <fenner@FreeBSD.org> | 1996-12-15 21:57:32 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-12-15 21:57:32 +0000 |
commit | 54d8a8c04ecc8221675a9b7cc9ce379e0a47e23f (patch) | |
tree | a6fa76b871bb435cf407a7ae96620bc503ea5bfd /usr.sbin/mtest | |
parent | eb8ff4b1132826abededa20df55f07f1954c4d46 (diff) | |
download | FreeBSD-src-54d8a8c04ecc8221675a9b7cc9ce379e0a47e23f.zip FreeBSD-src-54d8a8c04ecc8221675a9b7cc9ce379e0a47e23f.tar.gz |
Make mtest build. Write a makefile and a man page.
Diffstat (limited to 'usr.sbin/mtest')
-rw-r--r-- | usr.sbin/mtest/Makefile | 4 | ||||
-rw-r--r-- | usr.sbin/mtest/mtest.8 | 51 | ||||
-rw-r--r-- | usr.sbin/mtest/mtest.c | 3 |
3 files changed, 56 insertions, 2 deletions
diff --git a/usr.sbin/mtest/Makefile b/usr.sbin/mtest/Makefile new file mode 100644 index 0000000..75e2cf6 --- /dev/null +++ b/usr.sbin/mtest/Makefile @@ -0,0 +1,4 @@ +PROG= mtest +MAN8= mtest.8 + +.include <bsd.prog.mk> diff --git a/usr.sbin/mtest/mtest.8 b/usr.sbin/mtest/mtest.8 new file mode 100644 index 0000000..c451acf --- /dev/null +++ b/usr.sbin/mtest/mtest.8 @@ -0,0 +1,51 @@ +.\" The following requests are required for all man pages. +.Dd December 15, 1996 +.Os +.Dt MTEST 8 +.Sh NAME +.Nm mtest +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION +.Nm +is a small program for testing the multicast membership socket operations +and ioctls. It accepts the following commands, interactively: +.Bl -tag -width "a ifname e.e.e.e.e.e" -compact -offset indent +.It Ic j Ar g.g.g.g Ar i.i.i.i +Join the IP group address +.Ar g.g.g.g +on the interface with address +.Ar i.i.i.i . +.Ar i.i.i.i +may be specified as 0.0.0.0 to use the default interface. +.It Ic l Ar g.g.g.g Ar i.i.i.i +Leave the IP group address +.Ar g.g.g.g +on the interface with address +.Ar i.i.i.i . +.It Ic a Ar ifname Ar e.e.e.e.e.e +Join the ethernet group address +.Ar e.e.e.e.e.e +on interface +.Ar ifname . +.It Ic d Ar ifname Ar e.e.e.e.e.e +Leave the ethernet group address +.Ar e.e.e.e.e.e +on interface +.Ar ifname . +.It Ic m Ar ifname Ar 1/0 +Set or reset ALLMULTI mode on interface +.Ar ifname . +.It Ic p Ar ifname Ar 1/0 +Set or reset promiscuous mode on interface +.Ar ifname . +.It Ic ? +List legal commands. +.It Ic q +Quit the program. +.El +.\" .Sh SEE ALSO +.Sh AUTHORS +Steve Deering +.Sh BUGS +The command parser is not very flexible. diff --git a/usr.sbin/mtest/mtest.c b/usr.sbin/mtest/mtest.c index 3f7b8c4..13d305f 100644 --- a/usr.sbin/mtest/mtest.c +++ b/usr.sbin/mtest/mtest.c @@ -5,11 +5,10 @@ * Written by Steve Deering, Stanford University, February 1989. */ -#define MULTICAST - #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> +#include <sys/time.h> #include <net/if.h> #include <sys/ioctl.h> #include <netinet/in.h> |