Add support for IP range drop and make features more modular.

This commit is contained in:
Christian Deacon
2025-03-01 10:38:45 -05:00
parent f261cf7199
commit ff1ac4e817
8 changed files with 119 additions and 40 deletions

View File

@@ -4,6 +4,7 @@
#include <xdp/utils/helpers.h>
#include <xdp/utils/maps.h>
#if defined(ENABLE_FILTERS) && defined(ENABLE_FILTER_LOGGING)
/**
* Logs a message to the filter ringbuffer map.
*
@@ -50,4 +51,5 @@ static __always_inline int LogFilterMsg(struct iphdr* iph, struct ipv6hdr* iph6,
}
return 0;
}
}
#endif