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;