forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from nebius/IK8SNET-497
Allow ipip traffic for ipv4 ldrie dynamic balancers
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/bpf/lib/conntrack.h b/bpf/lib/conntrack.h | ||
index 4fb2f84c1f..111d853636 100644 | ||
--- a/bpf/lib/conntrack.h | ||
+++ b/bpf/lib/conntrack.h | ||
@@ -553,6 +553,10 @@ ct_extract_ports6(struct __ctx_buff *ctx, int off, struct ipv6_ct_tuple *tuple) | ||
return DROP_CT_INVALID_HDR; | ||
|
||
break; | ||
+ case IPPROTO_IPIP: | ||
+ if (l4_load_ports(ctx, off+sizeof(struct iphdr), &tuple->dport) < 0) | ||
+ return DROP_CT_INVALID_HDR; | ||
+ break; | ||
default: | ||
/* Can't handle extension headers yet */ | ||
return DROP_CT_UNKNOWN_PROTO; |