Lines Matching refs:values_map_fd
272 static int syncookie_open_bpf_maps(__u32 prog_id, int *values_map_fd, int *ports_map_fd) in syncookie_open_bpf_maps() argument
281 *values_map_fd = -1; in syncookie_open_bpf_maps()
330 *values_map_fd = map_fd; in syncookie_open_bpf_maps()
340 if (*values_map_fd != -1 && *ports_map_fd != -1) { in syncookie_open_bpf_maps()
348 if (*values_map_fd != -1) in syncookie_open_bpf_maps()
349 close(*values_map_fd); in syncookie_open_bpf_maps()
352 *values_map_fd = -1; in syncookie_open_bpf_maps()
362 int values_map_fd, ports_map_fd; in main() local
392 err = syncookie_open_bpf_maps(prog_id, &values_map_fd, &ports_map_fd); in main()
432 err = bpf_map_update_elem(values_map_fd, &key, &tcpipopts, BPF_ANY); in main()
448 err = bpf_map_lookup_elem(values_map_fd, &key, &value); in main()
467 close(values_map_fd); in main()