Daniel Borkmann 2f72959a9c 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>
2016-02-21 22:07:10 -05:00
..
2015-11-30 14:47:33 -05:00
2015-10-13 17:42:34 +02:00
2016-01-21 19:36:09 +01:00
2016-01-07 14:31:26 -05:00
2015-11-23 14:56:15 -05:00
2016-02-21 22:00:28 -05:00
2015-10-23 03:05:19 -07:00
2015-10-07 04:27:43 -07:00
2016-02-21 22:00:28 -05:00
2016-01-04 21:48:15 -05:00
2016-02-11 09:45:24 -05:00
2016-02-07 14:06:26 -05:00
2016-02-16 20:21:48 -05:00