When setting the user pattern from the pktgen cli, it would always be incorrectly set to the string 'pattern' regardless of input.
This can be demonstrated simply by setting a pattern set 0 pattern user set 0 user pattern asdfasdf Signed-off-by: Josh Knight <joshua.kni...@netscout.com> --- app/cli-functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli-functions.c b/app/cli-functions.c index 4293444..41d354b 100644 --- a/app/cli-functions.c +++ b/app/cli-functions.c @@ -652,7 +652,7 @@ set_cmd(int argc, char **argv) break; case 25: foreach_port(portlist, - pattern_set_user_pattern(info, argv[3])); + pattern_set_user_pattern(info, argv[4])); break; case 30: p = strchr(argv[4], '/'); -- 2.30.1 (Apple Git-130)