Home
last modified time | relevance | path

Searched refs:key_ipv6 (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_lpm_map.c333 struct bpf_lpm_trie_key *key_ipv6; in test_lpm_ipaddr() local
341 key_size_ipv6 = sizeof(*key_ipv6) + sizeof(__u32) * 4; in test_lpm_ipaddr()
343 key_ipv6 = alloca(key_size_ipv6); in test_lpm_ipaddr()
382 key_ipv6->prefixlen = 64; in test_lpm_ipaddr()
383 inet_pton(AF_INET6, "2a00:1450:4001:814::200e", key_ipv6->data); in test_lpm_ipaddr()
384 assert(bpf_map_update_elem(map_fd_ipv6, key_ipv6, &value, 0) == 0); in test_lpm_ipaddr()
388 key_ipv6->prefixlen = 128; in test_lpm_ipaddr()
399 inet_pton(AF_INET6, "2a00:1450:4001:814::", key_ipv6->data); in test_lpm_ipaddr()
400 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr()
403 inet_pton(AF_INET6, "2a00:1450:4001:814::1", key_ipv6->data); in test_lpm_ipaddr()
[all …]