From owner-man-jp-reviewer@jp.freebsd.org  Fri Oct  9 15:40:34 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id PAA23055;
	Fri, 9 Oct 1998 15:40:34 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from od3.sharp.co.jp (firewall-user@od3.sharp.co.jp [202.32.86.132])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id PAA23044
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:40:27 +0900 (JST)
	(envelope-from kuma@slab.tnr.sharp.co.jp)
Received: by od3.sharp.co.jp; id PAA08415; Fri, 9 Oct 1998 15:40:16 +0900 (JST)
Received: from unknown(133.159.14.115) by od3.sharp.co.jp via smap (3.2)
	id xma008340; Fri, 9 Oct 98 15:40:07 +0900
Received: from td1.tnr.sharp.co.jp (root@td1.tnr.sharp.co.jp [133.159.52.20]) by od.sharp.co.jp (8.8.5/3.5W-98081113) with ESMTP id PAA21833 for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:40:06 +0900 (JST)
Received: from mailfwd.slab.tnr.sharp.co.jp ([10.32.30.11]) by td1.tnr.sharp.co.jp (8.8.5/3.5W-97080613) with ESMTP id PAA27804 for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:40:06 +0900 (JST)
Received: from server01.slab.tnr.sharp.co.jp ([10.32.50.4])
	by mailfwd.slab.tnr.sharp.co.jp (8.8.4+2.7Wbeta4/3.6Wbeta7) with ESMTP id PAA26063
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:38:54 +0900 (JST)
Received: from gaye.slab.tnr.sharp.co.jp (gaye.slab.tnr.sharp.co.jp [10.32.49.117])
	by server01.slab.tnr.sharp.co.jp (8.8.5/3.6Wbeta7 98051815) with ESMTP id PAA28997
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:40:05 +0900 (JST)
Received: from gaye.slab.tnr.sharp.co.jp (kuma@localhost) by gaye.slab.tnr.sharp.co.jp (8.8.7/3.5Wpl5) with ESMTP id PAA12407 for <man-jp-reviewer@jp.freebsd.org>; Fri, 9 Oct 1998 15:40:05 +0900 (JST)
Message-Id: <199810090640.PAA12407@gaye.slab.tnr.sharp.co.jp>
To: man-jp-reviewer@jp.freebsd.org
Date: Fri, 09 Oct 1998 15:40:05 +0900
From: Norihiro Kumagai <kuma@slab.tnr.sharp.co.jp>
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: man-jp-reviewer 534
Subject: [man-jp-reviewer 534] ipresend.1
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org

$B7'C+$G$9!#(B

$B@hF|$O%<%m$N7o$G<:NiCW$7$^$7$?!#(B

$B$*OM$SJ}!9(B?! ipresend.1 $BLu$7$F$_$^$7$?!#(B
$B!V%P%0!W$NItJ,$NLu$O9k2w$G$9$N$G2~A1Ds0F$*4j$$CW$7$^$9!#(B

$B$"$HL$Lu$O;D$j(B2$B$D$G$9$M!#(B
$B4hD%$C$F:#=5Cf$KG<F~$9$l$P4V$K9g$&!)!dKY@n$5$s(B

--
$B7'C+(B $BE5Bg(B

============================================================
.TH IPRESEND 1
.\" jpman %Id: ipresend.1,v 0.0 1998/09/12 16:02:08 horikawa Stab %
.SH $BL>>N(B
.\"X ipresend \- resend IP packets out to network
ipresend \- IP $B%Q%1%C%H$r%M%C%H%o!<%/$K:FAw$9$k(B
.SH $B=q<0(B
.B ipsend
[
.B \-EHPRSTX
] [
.B \-d
<device>
] [
.B \-g
<\fIgateway\fP>
] [
.B \-m
<\fIMTU\fP>
] [
.B \-r
<\fIfilename\fP>
]
.SH $B2r@b(B
.PP
.\"X \fBipresend\fP was designed to allow packets to be resent, once captured,
.\"X back out onto the network for use in testing.  \fIipresend\fP supports a
.\"X number of different file formats as input, including saved snoop/tcpdump
.\"X binary data.
\fBipresend\fP $B$O!"%F%9%H$N:]$K!"0lEY<uM}$7$?%Q%1%C%H$r!"%M%C%H%o!<%/$KBP$7$F(B
$B:FAw$9$k$3$H$,$G$-$k$h$&$K$9$k$?$a$K@_7W$5$l$^$7$?!#(B\fIipresend\fP $B$O!"(B
$BF~NO$H$7$F!"(Bsnoop/tcpdump $B$,%;!<%V$7$?%P%$%J%j%G!<%?$r4^$`(B
$B$$$/$D$+$N%U%!%$%k7A<0$r%5%]!<%H$7$F$$$^$9!#(B
.SH $B%*%W%7%g%s(B
.TP
.BR \-d \0<interface>
.\"X Set the interface name to be the name supplied.  This is useful with the
.\"X \fB\-P, \-S, \-T\fP and \fB\-E\fP options, where it is not otherwise possible
.\"X to associate a packet with an interface.  Normal "text packets" can override
.\"X this setting.
$B;XDj$7$?L>A0$r%$%s%?%U%'!<%9L>$H$7$F@_Dj$7$^$9!#(B
$B$3$l$O(B \fB\-P, \-S, \-T, \-E\fP $B%*%W%7%g%s$H$H$b$K!"$D$^$j!"(B
$B%$%s%?%U%'!<%9$N;XDj$J$7$G$O%Q%1%C%H$r$"$k%$%s%?%U%'!<%9$KBP1~IU$1(B
$B$G$-$J$$>l9g$K;HMQ$9$k$HM-1W$G$9!#!V%F%-%9%H%Q%1%C%H!W$O$3$N@_Dj$r(B
$B>e=q$-$9$k$N$,IaDL$G$9!#(B
.TP
.BR \-g \0<gateway>
.\"X Specify the hostname of the gateway through which to route packets.  This
.\"X is required whenever the destination host isn't directly attached to the
.\"X same network as the host from which you're sending.
$B%Q%1%C%H$rDL$9%2!<%H%&%'%$$N%[%9%HL>$r;XDj$7$^$9!#Aw=P$7$h$&$H$9$k(B
$B%[%9%H$HF10l$N%M%C%H%o!<%/$KD>@\@\B3$5$l$F$$$J$$%[%9%H$r=*E@$H$9$k>l9g$O!"(B
$B$D$M$K$3$N%*%W%7%g%s$,I,MW$G$9!#(B
.TP
.BR \-m \0<MTU>
.\"X Specify the MTU to be used when sending out packets.  This option allows you
.\"X to set a fake MTU, allowing the simulation of network interfaces with small
.\"X MTU's without setting them so.
$B%Q%1%C%H$rAw=P$9$k:]$K;HMQ$5$l$k(B MTU $B$r;XDj$7$^$9!#$3$N%*%W%7%g%s$r(B
$B;H$&$3$H$G!"<B:]$H0[$J$k(B MTU $B$r@_Dj$9$k$3$H$,$G$-$^$9!#$3$l$K$h$j!"(B
$B<B:]$K%M%C%H%o!<%/%$%s%?%U%'!<%9$N(B MTU $B$r>.$5$/@_Dj$7$J$/$F$b!"(B
$B>.$5$J(B MTU $B$r;}$D%$%s%?%U%'!<%9$r%7%_%e%l!<%H$9$k$3$H$,$G$-$^$9!#(B
.TP
.BR \-r \0<filename>
.\"X Specify the filename from which to take input.  Default is stdin.
$BF~NO$rF@$k%U%!%$%kL>$r;XDj$7$^$9!#%G%U%)%k%H$OI8=`F~NO$G$9!#(B
.TP
.B \-E
.\"X The input file is to be text output from etherfind.  The text formats which
.\"X are currently supported are those which result from the following etherfind
.\"X option combinations:
$BF~NO%U%!%$%k$N7A<0$r(B etherfind $B$N%F%-%9%H=PNO$HA[Dj$7$^$9!#(B
$B8=:_%5%]!<%H$5$l$F$$$k%F%-%9%H7A<0$O!"<!$N(B etherfind $B%*%W%7%g%s$N(B
$BAH9g$;$N7k2L@8@.$5$l$k$b$N$G$9!#(B
.PP
.nf
		etherfind -n
		etherfind -n -t
.fi
.LP
.TP
.B \-H
.\"X The input file is to be hex digits, representing the binary makeup of the
.\"X packet.  No length correction is made, if an incorrect length is put in
.\"X the IP header.
$BF~NO%U%!%$%k$N7A<0$r!"%Q%1%C%H$r7A@.$9$k%P%$%J%j%G!<%?$rI=$9(B 16 $B?J?t$H(B
$BA[Dj$7$^$9!#(BIP $B%X%C%@$K4V0c$C$?D9$5$,CV$+$l$F$$$F$b!"D9$5Jd@5$O(B
$B9T$J$$$^$;$s!#(B
.TP
.B \-P
.\"X The input file specified by \fB\-i\fP is a binary file produced using libpcap
.\"X (i.e., tcpdump version 3).  Packets are read from this file as being input
.\"X (for rule purposes).
\fB\-i\fP $B$G;XDj$7$?F~NO%U%!%$%k$O(B libpcap ($B$9$J$o$A(B tcpdump $B%P!<%8%g%s(B 3)
$B$rMQ$$$F@8@.$5$l$?%P%$%J%j%U%!%$%k$G$9!#$3$N%U%!%$%k$+$iFI$_9~$^$l$k(B
$B%Q%1%C%H$O(B($BE,MQ$5$l$k5,B'$KBP$7$F$O(B)$BF~NO$H$7$F07$o$l$^$9!#(B
.TP
.B \-R
.\"X When sending packets out, send them out "raw" (the way they came in).  The
.\"X only real significance here is that it will expect the link layer (i.e.
.\"X ethernet) headers to be prepended to the IP packet being output.
$B%Q%1%C%H$rAw=P$9$k:]$K!"@8%G!<%?$H$7$F(B($B<u?.$7$?$=$N$^$^$r(B)$BAw=P$7$^$9!#(B
$B$3$3$GK\Ev$K=EMW$J$3$H$H$7$F!"(BIP $B%Q%1%C%H$NA0$KIU$$$?(B
$B%j%s%/AX(B($B$D$^$j%$!<%5%M%C%H(B)$B%X%C%@$bAw=P$5$l$k$H9M$($F$h$$$G$9!#(B
.TP
.B \-S
.\"X The input file is to be in "snoop" format (see RFC 1761).  Packets are read
.\"X from this file and used as input from any interface.  This is perhaps the
.\"X most useful input type, currently.
$BF~NO%U%!%$%k$N7A<0$r!"(B"snoop" $B$N7A<0(B(RFC 1761 $B;2>H(B)$B$HA[Dj$7$^$9!#(B
$B%Q%1%C%H$O$3$N%U%!%$%k$+$iFI$_9~$^$l!"$I$N%$%s%?%U%'!<%9$NF~NO$H$7$F(B
$BMQ$$$i$l$^$9!#8=:_$G$O:G$bM-1W$J7A<0$G$7$g$&!#(B
.TP
.B \-T
.\"X The input file is to be text output from tcpdump.  The text formats which
.\"X are currently supported are those which result from the following tcpdump
.\"X option combinations:
$BF~NO%U%!%$%k$N7A<0$r!"(Btcpdump $B$N%F%-%9%H=PNO7A<0$HA[Dj$7$^$9!#(B
$B8=:_%5%]!<%H$5$l$F$$$k%F%-%9%H7A<0$O!"0J2<$N(B tcpdump $B%*%W%7%g%s$NAH9g$;$N(B
$B7k2L@8@.$5$l$k$b$N$G$9!#(B
.PP
.nf
		tcpdump -n
		tcpdump -nq
		tcpdump -nqt
		tcpdump -nqtt
		tcpdump -nqte
.fi
.LP
.TP
.B \-X
.\"X The input file is composed of text descriptions of IP packets.
$BF~NO%U%!%$%k$O!"(BIP $B%Q%1%C%H$N%F%-%9%H5-=R$+$i$J$j$^$9!#(B
.SH $B4XO"9`L\(B
snoop(1m), tcpdump(8), etherfind(8c), ipftest(1), ipresend(1), iptest(1), bpf(4), dlpi(7p)
.SH $B?GCG(B
.PP
.\"X Needs to be run as root.
$B%k!<%H$G<B9T$9$kI,MW$,$"$j$^$9!#(B
.SH $B%P%0(B
.PP
.\"X Not all of the input formats are sufficiently capable of introducing a
.\"X wide enough variety of packets for them to be all useful in testing.
.\"X If you find any, please send email to me at darrenr@pobox.com
$BF~NO7A<0$N$9$Y$F$,!"%F%9%H$GM-1W$J$b$N$9$Y$F$rI=$;$k$@$1$N<oN`$N(B
$B%Q%1%C%H$rF3F~$9$k$N$K=<J,$J5-=RG=NO$,$"$k$o$1$G$O$"$j$^$;$s!#(B
$B$J$K$+$*5$$E$-$NE@$,$"$l$P!"(Bdarrenr@pobox.com $B$^$G%a!<%k2<$5$$!#(B
