aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ipvlan/ipvlan_main.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-02-19 23:05:26 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-21 22:07:10 -0500
commit2f72959a9c1260ade234f353ccca91118151af66 (patch)
treefdd08812be172d834752c55f580889256341e1a9 /drivers/net/ipvlan/ipvlan_main.c
parent3697649ff29e0f647565eed04b27a7779c646a22 (diff)
downloadlinux-2f72959a9c1260ade234f353ccca91118151af66.tar.gz
linux-2f72959a9c1260ade234f353ccca91118151af66.tar.bz2
linux-2f72959a9c1260ade234f353ccca91118151af66.zip
bpf: fix csum update in bpf_l4_csum_replace helper for udp
When using this helper for updating UDP checksums, we need to extend this in order to write CSUM_MANGLED_0 for csum computations that result into 0 as sum. Reason we need this is because packets with a checksum could otherwise become incorrectly marked as a packet without a checksum. Likewise, if the user indicates BPF_F_MARK_MANGLED_0, then we should not turn packets without a checksum into ones with a checksum. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_main.c')
0 files changed, 0 insertions, 0 deletions