summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fbaea46..a879f13 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,6 +24,7 @@ void usage(void)
"--nbruns X : set the wanted number of replay (1 by default). Set to 0 to infinite mode.\n"
"--wait-enter: will wait until you press ENTER to start the replay "
" (asked once all the initialization are done)"
+ "--topspeed: pcap will be replayed at maximum hardware speed."
/* TODO: */
/* "[--maxbitrate bitrate]|[--normalspeed] : bitrate not to be exceeded (default: no limit) in ko/s.\n" */
/* " specify --normalspeed to replay the trace with the good timings." */
@@ -128,6 +129,12 @@ int parse_options(const int ac, char** av, struct cmd_opts* opts)
continue;
}
+ /* --topspeed */
+ if (!strcmp(av[i], "--topspeed")) {
+ opts->topspeed = 1;
+ continue;
+ }
+
break;
}
if (i + 2 > ac)