]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: update skb->protocol in bpf_skb_net_grow
authorWillem de Bruijn <willemb@google.com>
Tue, 23 Apr 2019 18:43:48 +0000 (14:43 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Apr 2019 23:32:26 +0000 (01:32 +0200)
commit1d4ec5a1f4b1d706b7fec8f2cf38e398751701de
tree5f8271f622c43b9ad32530d484dfdb28cf65297d
parent83e62cd98259875e5e594db37daac9839fe819f7
bpf: update skb->protocol in bpf_skb_net_grow

Some tunnels, like sit, change the network protocol of packet.
If so, update skb->protocol to match the new type.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c