-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: nat: consistently use has_l4_header in IPv4 SNAT path
We currently don't support IPv4 fragmentation in the SNAT path (or more precisely, we don't have support for loading the L4 ports of a fragment). But we already have two spots that correctly check whether the packet has a L4 header (or only requires L3 SNAT). Make this consistent across the whole flow, so that it also gets applied in the CT lookup. Passing this through to snat_v4_nat_handle_icmp_frag_needed() also avoids a revalidation of the outer header. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
- Loading branch information
1 parent
1b19e5f
commit d583be6
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters