Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: dc378a1 ("samples: bpf: get ifindex from ifname") Signed-off-by: Ioana Ciornei <[email protected]> Acked-by: Matteo Croce <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
- Loading branch information