tcpreplayはSTDOUTに出力されますか?

tcpreplayはSTDOUTに出力されますか?
$ tcpreplay tcpdump-2015-01-02-18h-13m.pcap        
ERROR:  The intf1 option is required
tcpreplay (tcpreplay) - Replay network traffic stored in pcap files
USAGE:  tcpreplay [ -<flag> [<val>] | --<name>[{=| }<val>] ]... <pcap_file(s)>

   -q, --quiet                Quiet mode
   -T, --timer=str            Select packet timing mode: select, ioport, rdtsc, gtod, nano, abstime
       --sleep-accel=num      Reduce the amount of time to sleep by specified usec
       --rdtsc-clicks=num     Specify the RDTSC clicks/usec
   -v, --verbose              Print decoded packets via tcpdump to STDOUT
   -A, --decode=str           Arguments passed to tcpdump decoder
   -K, --enable-file-cache    Enable caching of packets to internal memory
       --preload-pcap         Preloads packets into RAM before sending
   -c, --cachefile=str        Split traffic via a tcpprep cache file
   -i, --intf1=str            Server/primary traffic output interface
   -I, --intf2=str            Client/secondary traffic output interface
       --listnics             List available network interfaces and exit$ 
$ pkg_info | grep tcpreplay
tcpreplay-3.4.4p1   resend network traffic saved by tcpdump
$ uname -a
OpenBSD notebook.lan 5.6 GENERIC.MP#333 amd64
$ 

Wiresharkはリソース集約型であるため、Wiresharkと同様にtcpreplayでパケットを確認する必要があります。尋ねる:どうすればいいですか?

ベストアンサー1

tcpreplay間違ったツールです。その役割はパケットを生成してネットワークに送信することであり、パケットの内容を標準出力に表示することではありません。

Wireshark(コマンドラインユーティリティを含むtshark)があまりにもリソース集約的であると思われる場合は、おそらく唯一の他のオプションですtcpdump。 Wiresharkのパケット復号化機能はWiresharkほど豊富ではありませんが、これらの追加機能によりWiresharkはより重くなります。 。

おすすめ記事