]> git.feebdaed.xyz Git - 0xmirror/xdp-tools.git/commitdiff
xdp-trafficgen: fix probe_options missing END_OPTIONS
authorFrank Liang <xiliang@redhat.com>
Thu, 24 Jul 2025 16:21:07 +0000 (00:21 +0800)
committerToke Høiland-Jørgensen <toke@toke.dk>
Mon, 4 Aug 2025 14:00:54 +0000 (16:00 +0200)
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 <xiliang@redhat.com>
xdp-trafficgen/xdp-trafficgen.c

index 9904906b7ecc27c97dd952e79f9c415b2abf164d..797d753e9b4c6a4cbcd1bad99be6aa7a8b5e7a4d 100644 (file)
@@ -1031,6 +1031,7 @@ static struct prog_option probe_options[] = {
                      .metavar = "<ifname>",
                      .short_opt = 'i',
                      .help = "Probe features of device <ifname>"),
+       END_OPTIONS
 };
 
 int do_probe(const void *opt, __unused const char *pin_root_path)