diff --git a/Makefile.am b/Makefile.am index 5f748d6c2c..4af7d9e06e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ # Makefile.am # Automake file for Ethereal # -# $Id: Makefile.am,v 1.72 1999/09/14 08:06:22 guy Exp $ +# $Id: Makefile.am,v 1.73 1999/09/17 04:38:14 gram Exp $ # # Ethereal - Network traffic analyzer # By Gerald Combs @@ -22,7 +22,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -bin_PROGRAMS = ethereal randpkt +bin_PROGRAMS = ethereal man_MANS = ethereal.1 @@ -157,11 +157,11 @@ ps.c: print.ps rdps rdps: rdps.c $(CC) -o rdps $(srcdir)/rdps.c -randpkt_SOURCES = \ - randpkt.c +randpkt.o: randpkt.c + $(CC) -DHAVE_CONFIG_H `glib-config --cflags` -c $(srcdir)/randpkt.c -randpkt_DEPENDENCIES = wiretap/libwiretap.a -randpkt_LDADD = wiretap/libwiretap.a +randpkt: randpkt.o wiretap/libwiretap.a + $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` DISTCLEANFILES = \ rdps \ diff --git a/doc/randpkt.txt b/doc/randpkt.txt index 1b42b2fc7d..d2eb412db1 100644 --- a/doc/randpkt.txt +++ b/doc/randpkt.txt @@ -1,10 +1,13 @@ Random Packet Generator ----------------------- -$Id: randpkt.txt,v 1.2 1999/09/10 15:38:58 gram Exp $ +$Id: randpkt.txt,v 1.3 1999/09/17 04:38:23 gram Exp $ -This small utility creates a libpcap trace file full of random packets. +randpkt is a small utility creates a libpcap trace file full of random packets. You can control the number of packets, the maximum size of each packet, -and the type of each packet. +and the type of each packet. It is not build by default, but you +can create it in the top-level Ethereal directory by typing: + +make randpkt By creating many randomized packets of a certain type, you can test packet sniffers to see how well they handle malformed packets. diff --git a/randpkt.c b/randpkt.c index 9a2ade5056..c3a4c52b5e 100644 --- a/randpkt.c +++ b/randpkt.c @@ -4,7 +4,7 @@ * Creates random packet traces. Useful for debugging sniffers by testing * assumptions about the veracity of the data found in the packet. * - * $Id: randpkt.c,v 1.2 1999/09/10 15:38:48 gram Exp $ + * $Id: randpkt.c,v 1.3 1999/09/17 04:38:14 gram Exp $ * * Copyright (C) 1999 by Gilbert Ramirez * @@ -42,7 +42,7 @@ #include #include #include -#include +#include "wiretap/wtap.h" #define array_length(x) (sizeof x / sizeof x[0])