-
-
Save TCY16/3396531a8aa8884fa474e1ef8774f140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct bpf_map_def SEC("maps") exclude_v4_prefixes = { | |
.type = BPF_MAP_TYPE_LPM_TRIE, | |
.key_size = sizeof(struct bpf_lpm_trie_key) + sizeof(uint32_t), | |
.value_size = sizeof(uint64_t), | |
.max_entries = 10000 | |
}; | |
struct bpf_map_def SEC("maps") exclude_v6_prefixes = { | |
.type = BPF_MAP_TYPE_LPM_TRIE, | |
.key_size = sizeof(struct bpf_lpm_trie_key) + 8, // first 64 bits | |
.value_size = sizeof(uint64_t), | |
.max_entries = 10000 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment