Move defines to header file for XDP program.

This commit is contained in:
gamemann
2021-11-16 00:33:30 +00:00
parent e56a8e64ec
commit 7964f8986a
2 changed files with 5 additions and 5 deletions

View File

@@ -22,6 +22,11 @@
#endif
#define __u128 __uint128_t
// Additional options for XDP program.
//#define DEBUG
//#define DOSTATSONBLOCKMAP // Feel free to comment this out if you don't want the `blocked` entry on the stats map to be incremented every single time a packet is dropped from the source IP being on the blocked map. Commenting this line out should increase performance when blocking malicious traffic.
#define ALLOWSINGLEIPV4V6 // When this is defined, a check will occur inside the IPv4 and IPv6 filters. For IPv6 packets, if no IPv6 source/destination IP addresses are set, but there is an IPv4 address, it will ignore the filter. The same goes for IPv4, if there is no IPv4 source/destination IP addresses set, if an IPv6 address is set, it will ignore the filter.
#endif
struct tcpopts