Skip to content

Instantly share code, notes, and snippets.

@TCY16
Created October 5, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TCY16/ddf099659279118655f0dfa93b778d0d to your computer and use it in GitHub Desktop.
Save TCY16/ddf099659279118655f0dfa93b778d0d to your computer and use it in GitHub Desktop.
/* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
struct bpf_lpm_trie_key {
__u32 prefixlen; /* up to 32 for AF_INET, 128 for AF_INET6 */
__u8 data[0]; /* Arbitrary size */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment