maxv fa6e6f537b Fix an inverted logic.
nbuf_cksum_barrier returns true when the direction is PFIL_OUT and TSO is
active; that is to say, it returns true when the checksum was already
recomputed by the function.

The check should be !nbuf_cksum_barrier, because otherwise we're wrongfully
checksumming twice, and it causes the packet to be kicked later in
tcp_input.

This can be seen with a configuration of the type:

	procedure "norm" {
		normalize: "max-mss" 15000
	}
	group default {
		pass all apply "norm"
	}

The packets systematically get dropped because the checksum validation in
tcp_input fails. With this patch in place, it works.
2018-04-07 09:20:25 +00:00
2018-04-05 18:44:57 +00:00
2018-04-07 00:36:55 +00:00
2018-04-06 19:00:08 +00:00
2018-04-07 00:22:27 +00:00
2018-04-07 00:41:16 +00:00
2018-04-07 00:19:52 +00:00
2018-04-07 09:20:25 +00:00
2018-04-06 09:23:36 +00:00
Description
No description provided
3.1 GiB
Languages
C 85.3%
Roff 7.2%
Assembly 3.1%
Shell 1.7%
Makefile 1.2%
Other 0.9%