Skip to content

Commit 180fa46

Browse files
liangxiao1tohojo
authored andcommitted
xdp-trafficgen: fix probe_options missing END_OPTIONS
Probe does not work w/o "-i" option. Fix the error by adding END_OPTIONS to probe_options. $ sudo xdp-trafficgen probe -i ens5 Missing required option '--interface' Usage: xdp-trafficgen [options] <hostname> Use --help (or -h) to see full option list. Signed-off-by: Frank Liang <[email protected]>
1 parent 2398dd4 commit 180fa46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xdp-trafficgen/xdp-trafficgen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ static struct prog_option probe_options[] = {
10311031
.metavar = "<ifname>",
10321032
.short_opt = 'i',
10331033
.help = "Probe features of device <ifname>"),
1034+
END_OPTIONS
10341035
};
10351036

10361037
int do_probe(const void *opt, __unused const char *pin_root_path)

0 commit comments

Comments
 (0)