ntpcap_replay
ntpcap_replay
The ntpcap_replay tool replays any pcap or pcap-ng capture file. The packets are transmitted on the pcap interface specified by the -i option or on the port specified by the -p option. The replay rate is identical to the rate at which the packets were received (captured).
Syntax
ntpcap_replay -f <file name> -i <interface> [-p <port no.>] [-c <number>] [-n] [-l ] [-h]
Command | Description |
---|---|
-h , -h | Displays the help |
-n --nocache | By default, the ntpcap_replay tool caches data before replaying begins in order to support replaying at line-rate and not be limited by the hard drive. When specifying the --nocache parameter, the tool does not cache the data but reads it directly from the file. |
-c --count | Number of times to replay the file (0=infinite replay). |
-f <file> | Specifies the file to replay. This file contains the data to be replayed. |
-p <port no.> | The Port number used to replay data. Port number and interface cannot be spedified at the same time. |
-i <interface> | pcap interface used to transmit data. Port number and interface cannot be spedified at the same time. |
-l | list all available Tx-capable interfaces. |
Examples
- Replay on an NT40E3 adapter using port number.
ntpcap_replay -f file.cap -p 3
- Replay on an NT40E3 adapter using pcap interface.
ntpcap_replay -f file.cap -i napa2