Skip to content

Commit 5cc9327

Browse files
fix: always parse TCP header in order to SDF filters work (#606)
1 parent 1adeed9 commit 5cc9327

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎cmd/ebpf/xdp/n3n6_entrypoint.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static __always_inline enum xdp_action handle_ip4(struct packet_context *ctx) {
406406
break;
407407
case IPPROTO_TCP:
408408
increment_counter(ctx->counters, rx_tcp);
409+
parse_tcp(ctx);
409410
break;
410411
default:
411412
increment_counter(ctx->counters, rx_other);
@@ -434,6 +435,7 @@ static __always_inline enum xdp_action handle_ip6(struct packet_context *ctx) {
434435
break;
435436
case IPPROTO_TCP:
436437
increment_counter(ctx->counters, rx_tcp);
438+
parse_tcp(ctx);
437439
break;
438440
default:
439441
increment_counter(ctx->counters, rx_other);
@@ -491,4 +493,4 @@ int upf_ip_entrypoint_func(struct xdp_md *ctx) {
491493
return action;
492494
}
493495

494-
char _license[] SEC("license") = "GPL";
496+
char _license[] SEC("license") = "GPL";

0 commit comments

Comments
 (0)