Fix issues with IP range drop map.

This commit is contained in:
Christian Deacon
2025-03-13 08:08:22 -04:00
parent 5a6fff2ba6
commit e9e9027fe7
6 changed files with 15 additions and 16 deletions

View File

@@ -30,11 +30,12 @@ struct
} map_block6 SEC(".maps");
#ifdef ENABLE_IP_RANGE_DROP
struct {
struct
{
__uint(type, BPF_MAP_TYPE_LPM_TRIE);
__uint(max_entries, MAX_IP_RANGES);
__uint(map_flags, BPF_F_NO_PREALLOC);
__type(key, LpmTrieKey);
__type(key, lpm_trie_key_t);
__type(value, u64);
} map_range_drop SEC(".maps");
#endif