From e3c683aea6e9c06bf0ddf4a18f79e7e92b8f01a0 Mon Sep 17 00:00:00 2001 From: malmert Date: Sat, 7 Mar 2026 16:44:00 +0100 Subject: [PATCH] test 3 --- backend/src/utilities/ebpf_bridge_events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/utilities/ebpf_bridge_events.py b/backend/src/utilities/ebpf_bridge_events.py index 881da02..cd76ab5 100644 --- a/backend/src/utilities/ebpf_bridge_events.py +++ b/backend/src/utilities/ebpf_bridge_events.py @@ -196,14 +196,14 @@ static __always_inline int parse_l3_l4_direct(struct event_t *event, void *data, __builtin_memcpy(event->dst_ip, &ip6h->daddr, 16); if (ip6h->nexthdr == IPPROTO_TCP) { - struct tcphdr *tcph = ip6h + 1; + struct tcphdr *tcph = (void *)(ip6h + 1); if ((void *)(tcph + 1) > data_end) { return 1; } event->src_port = ntohs(tcph->source); event->dst_port = ntohs(tcph->dest); } else if (ip6h->nexthdr == IPPROTO_UDP) { - struct udphdr *udph = ip6h + 1; + struct udphdr *udph = (void *)(ip6h + 1); if ((void *)(udph + 1) > data_end) { return 1; } @@ -674,7 +674,7 @@ def main() -> int: "ifaces": sorted(TARGET_INTERFACES), "ingress_program": ingress_prog_name, "egress_program": egress_prog_name, - "build_dir": args.build_dir, + "build_dir": str(args.build_dir), }, separators=(",", ":"), ),