diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-24 12:04:55 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-12-06 21:47:54 +0100 |
commit | 1814096980bbe546c4384b7b064126cbe7d40d30 (patch) | |
tree | 60b487a40c3af0f581b97928d508ade027d8cdb0 /mm/vmalloc.c | |
parent | e0ffdbc78d84e1da090f03ab62da3def0e65159e (diff) |
netfilter: nft_payload: layer 4 checksum adjustment for pseudoheader fields
This patch adds a new flag that signals the kernel to update layer 4
checksum if the packet field belongs to the layer 4 pseudoheader. This
implicitly provides stateless NAT 1:1 that is useful under very specific
usecases.
Since rules mangling layer 3 fields that are part of the pseudoheader
may potentially convey any layer 4 packet, we have to deal with the
layer 4 checksum adjustment using protocol specific code.
This patch adds support for TCP, UDP and ICMPv6, since they include the
pseudoheader in the layer 4 checksum calculation. ICMP doesn't, so we
can skip it.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions