Searched refs:ports_map_fd (Results 1 – 1 of 1) sorted by relevance
272 static int syncookie_open_bpf_maps(__u32 prog_id, int *values_map_fd, int *ports_map_fd) in syncookie_open_bpf_maps() argument282 *ports_map_fd = -1; in syncookie_open_bpf_maps()334 *ports_map_fd = map_fd; in syncookie_open_bpf_maps()340 if (*values_map_fd != -1 && *ports_map_fd != -1) { in syncookie_open_bpf_maps()350 if (*ports_map_fd != -1) in syncookie_open_bpf_maps()351 close(*ports_map_fd); in syncookie_open_bpf_maps()353 *ports_map_fd = -1; in syncookie_open_bpf_maps()362 int values_map_fd, ports_map_fd; in main() local392 err = syncookie_open_bpf_maps(prog_id, &values_map_fd, &ports_map_fd); in main()408 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port, BPF_ANY); in main()[all …]