Adjust for symbol name changes.
[dragonfly.git] / contrib / ipfilter / ipsend / ipresend.1
1 .TH IPRESEND 1
2 .SH NAME
3 ipresend \- resend IP packets out to network
4 .SH SYNOPSIS
5 .B ipresend
6 [
7 .B \-EHPRSTX
8 ] [
9 .B \-d
10 <device>
11 ] [
12 .B \-g
13 <\fIgateway\fP>
14 ] [
15 .B \-m
16 <\fIMTU\fP>
17 ] [
18 .B \-r
19 <\fIfilename\fP>
20 ]
21 .SH DESCRIPTION
22 .PP
23 \fBipresend\fP was designed to allow packets to be resent, once captured,
24 back out onto the network for use in testing.  \fIipresend\fP supports a
25 number of different file formats as input, including saved snoop/tcpdump
26 binary data.
27 .SH OPTIONS
28 .TP
29 .BR \-d \0<interface>
30 Set the interface name to be the name supplied.  This is useful with the
31 \fB\-P, \-S, \-T\fP and \fB\-E\fP options, where it is not otherwise possible
32 to associate a packet with an interface.  Normal "text packets" can override
33 this setting.
34 .TP
35 .BR \-g \0<gateway>
36 Specify the hostname of the gateway through which to route packets.  This
37 is required whenever the destination host isn't directly attached to the
38 same network as the host from which you're sending.
39 .TP
40 .BR \-m \0<MTU>
41 Specify the MTU to be used when sending out packets.  This option allows you
42 to set a fake MTU, allowing the simulation of network interfaces with small
43 MTU's without setting them so.
44 .TP
45 .BR \-r \0<filename>
46 Specify the filename from which to take input.  Default is stdin.
47 .TP
48 .B \-E
49 The input file is to be text output from etherfind.  The text formats which
50 are currently supported are those which result from the following etherfind
51 option combinations:
52 .PP
53 .nf
54                 etherfind -n
55                 etherfind -n -t
56 .fi
57 .LP
58 .TP
59 .B \-H
60 The input file is to be hex digits, representing the binary makeup of the
61 packet.  No length correction is made, if an incorrect length is put in
62 the IP header.
63 .TP
64 .B \-P
65 The input file specified by \fB\-i\fP is a binary file produced using libpcap
66 (i.e., tcpdump version 3).  Packets are read from this file as being input
67 (for rule purposes).
68 .TP
69 .B \-R
70 When sending packets out, send them out "raw" (the way they came in).  The
71 only real significance here is that it will expect the link layer (i.e.
72 ethernet) headers to be prepended to the IP packet being output.
73 .TP
74 .B \-S
75 The input file is to be in "snoop" format (see RFC 1761).  Packets are read
76 from this file and used as input from any interface.  This is perhaps the
77 most useful input type, currently.
78 .TP
79 .B \-T
80 The input file is to be text output from tcpdump.  The text formats which
81 are currently supported are those which result from the following tcpdump
82 option combinations:
83 .PP
84 .nf
85                 tcpdump -n
86                 tcpdump -nq
87                 tcpdump -nqt
88                 tcpdump -nqtt
89                 tcpdump -nqte
90 .fi
91 .LP
92 .TP
93 .B \-X
94 The input file is composed of text descriptions of IP packets.
95 .DT
96 .SH SEE ALSO
97 snoop(1m), tcpdump(8), etherfind(8c), ipftest(1), ipresend(1), iptest(1), bpf(4), dlpi(7p)
98 .SH DIAGNOSTICS
99 .PP
100 Needs to be run as root.
101 .SH BUGS
102 .PP
103 Not all of the input formats are sufficiently capable of introducing a
104 wide enough variety of packets for them to be all useful in testing.
105 If you find any, please send email to me at darrenr@pobox.com
106