aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generator.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generator.c b/generator.c
index 1212865..8d2672d 100644
--- a/generator.c
+++ b/generator.c
@@ -1141,11 +1141,11 @@ static void usage(char *progname)
"\n"
" Work mode:\n"
" 1.send udp packets\n"
- " odp_generator -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 -m u\n"
+ " %s -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 -m u\n"
" 2.receive udp packets\n"
- " odp_generator -I eth0 -m r\n"
+ " %s -I eth0 -m r\n"
" 3.work likes ping\n"
- " odp_generator -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 --cpumask 0xc -m p\n"
+ " %s -I eth0 --srcmac fe:0f:97:c9:e0:44 --dstmac 32:cb:9b:27:2f:1a --srcip 192.168.0.1 --dstip 192.168.0.2 --cpumask 0xc -m p\n"
"\n"
"Mandatory OPTIONS:\n"
" -I, --interface Eth interfaces (comma-separated, no spaces)\n"
@@ -1165,7 +1165,8 @@ static void usage(char *progname)
" default is to assign all\n"
" -n, --count the number of packets to be send\n"
" -c, --cpumask to set on cores\n"
- "\n", NO_PATH(progname), NO_PATH(progname)
+ "\n", NO_PATH(progname), NO_PATH(progname),
+ NO_PATH(progname), NO_PATH(progname), NO_PATH(progname)
);
}
/**