Skip to content
Snippets Groups Projects
Commit 010c0b9f authored by Patrick McHardy's avatar Patrick McHardy
Browse files

netfilter: nf_nat: support mangling a single TCP packet multiple times


nf_nat_mangle_tcp_packet() can currently only handle a single mangling
per window because it only maintains two sequence adjustment positions:
the one before the last adjustment and the one after.

This patch makes sequence number adjustment tracking in
nf_nat_mangle_tcp_packet() optional and allows a helper to manually
update the offsets after the packet has been fully handled.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent f5b321bd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment