Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lpm_map.c247 int map_fd_ipv6; in test_lpm_ipaddr() local
260 map_fd_ipv6 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr()
263 assert(map_fd_ipv6 >= 0); in test_lpm_ipaddr()
294 assert(bpf_map_update_elem(map_fd_ipv6, key_ipv6, &value, 0) == 0); in test_lpm_ipaddr()
310 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr()
314 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr()
327 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == -1 && in test_lpm_ipaddr()
331 close(map_fd_ipv6); in test_lpm_ipaddr()