From: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> Date: Fri, 12 Nov 2021 07:33:01 +0530 > Commit b599015f044d tried to fix a bug where sizeof was incorrectly > applied to a pointer instead of the array string was being copied to, to > find the destination buffer size, but ended up using strlen, which is > still incorrect. However, on closer look ifname_buf has no other use, > hence directly use optarg. > > Fixes: b599015f044d ("samples/bpf: Fix application of sizeof to pointer") > Fixes: e531a220cc59 ("samples: bpf: Convert xdp_redirect_cpu to XDP samples helper") > Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> > --- Works, thanks! Reviewed-and-tested-by: Alexander Lobakin <alexandr.lobakin@xxxxxxxxx> Thanks, Al