test 3
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-03-07 16:44:00 +01:00
parent f53bfe2d64
commit e3c683aea6

View File

@@ -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); __builtin_memcpy(event->dst_ip, &ip6h->daddr, 16);
if (ip6h->nexthdr == IPPROTO_TCP) { if (ip6h->nexthdr == IPPROTO_TCP) {
struct tcphdr *tcph = ip6h + 1; struct tcphdr *tcph = (void *)(ip6h + 1);
if ((void *)(tcph + 1) > data_end) { if ((void *)(tcph + 1) > data_end) {
return 1; return 1;
} }
event->src_port = ntohs(tcph->source); event->src_port = ntohs(tcph->source);
event->dst_port = ntohs(tcph->dest); event->dst_port = ntohs(tcph->dest);
} else if (ip6h->nexthdr == IPPROTO_UDP) { } else if (ip6h->nexthdr == IPPROTO_UDP) {
struct udphdr *udph = ip6h + 1; struct udphdr *udph = (void *)(ip6h + 1);
if ((void *)(udph + 1) > data_end) { if ((void *)(udph + 1) > data_end) {
return 1; return 1;
} }
@@ -674,7 +674,7 @@ def main() -> int:
"ifaces": sorted(TARGET_INTERFACES), "ifaces": sorted(TARGET_INTERFACES),
"ingress_program": ingress_prog_name, "ingress_program": ingress_prog_name,
"egress_program": egress_prog_name, "egress_program": egress_prog_name,
"build_dir": args.build_dir, "build_dir": str(args.build_dir),
}, },
separators=(",", ":"), separators=(",", ":"),
), ),