Fixed randpkt so it isn't linked to X11 libs. Removed randpkt from default

target list, so a 'make randpkt' is required if you want to build it.

svn path=/trunk/; revision=684
This commit is contained in:
Gilbert Ramirez 1999-09-17 04:38:23 +00:00
parent 7b6a195ea3
commit ff20b92b67
3 changed files with 14 additions and 11 deletions

View File

@ -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 <gerald@zing.org>
@ -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 \

View File

@ -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.

View File

@ -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 <gram@xiexie.org>
*
@ -42,7 +42,7 @@
#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])