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: dc378a1a ("samples: bpf: get ifindex from ifname") Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com> Acked-by: NMatteo Croce <mcroce@redhat.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
Showing
想要评论请 注册 或 登录