Searched refs:key_ipv4 (Results 1 – 1 of 1) sorted by relevance
369 struct bpf_lpm_trie_key *key_ipv4, *key_ipv6; in bpf_firewall_add_access_items() local374 key_ipv4 = alloca0(offsetof(struct bpf_lpm_trie_key, data) + sizeof(uint32_t)); in bpf_firewall_add_access_items()381 key_ipv4->prefixlen = a->prefixlen; in bpf_firewall_add_access_items()382 memcpy(key_ipv4->data, &a->address, sizeof(uint32_t)); in bpf_firewall_add_access_items()384 r = bpf_map_update_element(ipv4_map_fd, key_ipv4, &value); in bpf_firewall_add_access_items()