Searched refs:key_ipv4 (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 332 struct bpf_lpm_trie_key *key_ipv4; in test_lpm_ipaddr() local 340 key_size_ipv4 = sizeof(*key_ipv4) + sizeof(__u32); in test_lpm_ipaddr() 342 key_ipv4 = alloca(key_size_ipv4); in test_lpm_ipaddr() 357 key_ipv4->prefixlen = 16; in test_lpm_ipaddr() 358 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 359 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 362 key_ipv4->prefixlen = 24; in test_lpm_ipaddr() 363 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 364 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 367 key_ipv4->prefixlen = 24; in test_lpm_ipaddr() [all …]
|