From 1d7aebb88898a5e4a69bff4c1e433f457a58f95f Mon Sep 17 00:00:00 2001 From: Rodrigo Bertoldo de Sousa Martins Date: Sun, 13 Sep 2026 21:15:02 -0300 Subject: [PATCH] fix --- xdp/loader.c | 2 ++ xdp/xdp_ddos_filter.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xdp/loader.c b/xdp/loader.c index 216ba5f..79f80e7 100644 --- a/xdp/loader.c +++ b/xdp/loader.c @@ -1,4 +1,6 @@ #include +#include +#include #include #include "bridge_xdp.h" diff --git a/xdp/xdp_ddos_filter.c b/xdp/xdp_ddos_filter.c index 5a8a8e2..9df9de4 100644 --- a/xdp/xdp_ddos_filter.c +++ b/xdp/xdp_ddos_filter.c @@ -291,7 +291,6 @@ int xdp_ddos_filter(struct xdp_md *ctx) { return XDP_PASS; __u32 src_ip = ip->saddr; - __u32 dst_ip = ip->daddr; // Fast path: redes internas, whitelist e trusted hosts if (is_internal_network(src_ip) || is_whitelisted(src_ip)) return XDP_PASS;