Lines Matching refs:key_ipv6
335 struct bpf_lpm_trie_key_u8 *key_ipv6; in test_lpm_ipaddr() local
343 key_size_ipv6 = sizeof(*key_ipv6) + sizeof(__u32) * 4; in test_lpm_ipaddr()
345 key_ipv6 = alloca(key_size_ipv6); in test_lpm_ipaddr()
384 key_ipv6->prefixlen = 64; in test_lpm_ipaddr()
385 inet_pton(AF_INET6, "2a00:1450:4001:814::200e", key_ipv6->data); in test_lpm_ipaddr()
386 assert(bpf_map_update_elem(map_fd_ipv6, key_ipv6, &value, 0) == 0); in test_lpm_ipaddr()
390 key_ipv6->prefixlen = 128; in test_lpm_ipaddr()
401 inet_pton(AF_INET6, "2a00:1450:4001:814::", key_ipv6->data); in test_lpm_ipaddr()
402 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr()
405 inet_pton(AF_INET6, "2a00:1450:4001:814::1", key_ipv6->data); in test_lpm_ipaddr()
406 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr()
416 inet_pton(AF_INET6, "2a00:ffff::", key_ipv6->data); in test_lpm_ipaddr()
417 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == -ENOENT); in test_lpm_ipaddr()