appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.19k stars 268 forks source link

[Bug] macOS help garbled #606

Closed fklassen closed 4 years ago

fklassen commented 4 years ago

Describe the bug Once compiled on macOS, tcpreplay -h produces unexpected results

To Reproduce Steps to reproduce the behavior:

  1. ./autogen
  2. ./configure --disable-local-libopts --enable-debug
  3. make
  4. sudo src/tcpreplay -h

Expected behavior Full help

Screenshots

sudo src/tcpreplay -h
tcpreplay (tcpreplay) - Replay network traffic stored in pcap files
Usage:  tcpreplay [ -<flag> [<val>] | --<name>[{=| }<val>] ]... <pcap_file(s)>

   -d, --dbug=num             Enable debugging output
   -q, --quiet                Quiet mode
   -T, --timer=str            Select packet timing mode: select, ioport, gtod, nano
       --maxsleep=num         Sleep for no more then X milliseconds between packets
   -v, --verbose              Print decoded packets via tcpdump to STDOUT
   -A, --decode=str           Arguments passed to tcpdump decoder
   -K, --preload-pcap         Preloads packets into RAM before sending
   -c, --cachefile=str        Split traffic via a tcpprep cache file
   -2, --dualfile             Replay two files at a time from a network tap
   -i, --intf1=str            Client to server/RX/primary traffic output interface
   -I, --intf2=str            Server to client/TX/secondary traffic output interface
       --listnics             List available network interfaces and exit
              ,        , , , , ,                                    ,        , , , ,
Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.
tcpreplay is a tool for replaying network traffic from files saved with
tcpdump or other tools which write pcap(3) files.

System (please complete the following information):

Additional context Add any other context about the problem here.

fklassen commented 4 years ago

Issue appears to be that autogen is version 5.18.16 on macOS and 5.18.12 on Debian Stretch. When compiled with match version, all worked.