Add support for IP range drop and make features more modular.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <xdp/utils/rl.h>
|
||||
|
||||
#ifdef ENABLE_FILTERS
|
||||
/**
|
||||
* Updates IPv4 client stats.
|
||||
*
|
||||
@@ -128,4 +129,5 @@ static __always_inline void UpdateIp6Stats(u64 *pps, u64 *bps, u128 *ip, u16 por
|
||||
bpf_map_update_elem(&map_ip6_stats, ip, &new, BPF_ANY);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user