Re: [PATCH] samples: bpf: user proper argument index

2019-01-10 Thread Daniel Borkmann
On 01/09/2019 06:06 PM, Ioana Ciornei wrote: > 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 Applied to bpf,

Re: [PATCH] samples: bpf: user proper argument index

2019-01-09 Thread Matteo Croce
On Wed, Jan 9, 2019 at 5:07 PM Ioana Ciornei wrote: > > 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 > --- >

[PATCH] samples: bpf: user proper argument index

2019-01-09 Thread Ioana Ciornei
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 --- samples/bpf/xdp1_user.c | 2 +- 1 file changed, 1 insertion(+), 1 del