# 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 <gerald@zing.org>
# 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
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 \
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.
* 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 <gram@xiexie.org>
*
#include <stdlib.h>
#include <string.h>
#include <glib.h>
-#include <wtap.h>
+#include "wiretap/wtap.h"
#define array_length(x) (sizeof x / sizeof x[0])