diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2019-01-09 17:06:55 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-01-10 15:54:47 +0100 |
commit | 11b36abc249f5e100d532c5271dae938fde85175 (patch) | |
tree | a10da71432c66ad95d7a8f05bffe41ad5d6a0361 /tools/testing/selftests/bpf/Makefile | |
parent | e3ca63de8ade75757a067f6a5bd111d30cdcadb5 (diff) |
samples: bpf: user proper argument index
Use optind as index for argv instead of a hardcoded value.
When the program has options this leads to improper parameter handling.
Fixes: dc378a1ab5b6 ("samples: bpf: get ifindex from ifname")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Acked-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
0 files changed, 0 insertions, 0 deletions