Commit bc3b03b7 authored by Maitreya29's avatar Maitreya29 Committed by arnavpuranik
Browse files

net: adapt bpf_xdp_copy

parent f8162fe9
......@@ -2455,9 +2455,9 @@ static const struct bpf_func_proto bpf_skb_under_cgroup_proto = {
static unsigned long bpf_xdp_copy(void *dst_buff, const void *src_buff,
unsigned long off, unsigned long len)
unsigned long len)
memcpy(dst_buff, src_buff + off, len);
memcpy(dst_buff, src_buff, len);
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment