This is a stab in the dark as I have no experience with tcpreplay, but reading the tcpreplay man pages for --mbps (-M) option, it says
Quote:
"Specify a floating point value for the Mbps rate that tcpreplay should send packets at."
|
So you might try 400.0, rather than 400
EDIT: Scratch that. Just did a little testing and that made no difference.
I've only skimmed it, however, you might find
this helpful
EDIT #2: I've been playing around with tcpreplay a bit. Are you trying to run this command on your currently connected interface? I believe you need one that is not being used. I tried this on a secondary usb wireless dongle and the -M option works as expected.
Code:
tcpreplay -i wlp0s20u1 -K -M 400 ~/test.pcap
File Cache is enabled
Actual: 31536 packets (29575198 bytes) sent in 0.591504 seconds.
Rated: 49999996.6 Bps, 399.99 Mbps, 53314.93 pps
Flows: 301 flows, 508.87 fps, 31317 flow packets, 219 non-flow
Statistics for network device: wlp0s20u1
Attempted packets: 31536
Successful packets: 31536
Failed packets: 0
Truncated packets: 0
Retried packets (ENOBUFS): 0
Retried packets (EAGAIN): 0