Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c674 static void redir_to_connected(int family, int sotype, int sock_mapfd, in redir_to_connected() argument
694 err = add_to_sockmap(sock_mapfd, p0, p1); in redir_to_connected()
802 err = add_to_sockmap(sock_mapfd, s, p); in redir_to_listening()
1339 static void unix_redir_to_connected(int sotype, int sock_mapfd, in unix_redir_to_connected() argument
1360 err = add_to_sockmap(sock_mapfd, p0, p1); in unix_redir_to_connected()
1500 err = add_to_sockmap(sock_mapfd, u0, v0); in vsock_unix_redir_connectible()
1530 bpf_map_delete_elem(sock_mapfd, &key); in vsock_unix_redir_connectible()
1532 bpf_map_delete_elem(sock_mapfd, &key); in vsock_unix_redir_connectible()
1680 err = add_to_sockmap(sock_mapfd, p0, p1); in udp_redir_to_connected()
1768 err = add_to_sockmap(sock_mapfd, p0, p1); in inet_unix_redir_to_connected()
[all …]
H A Dsockmap_helpers.h298 static inline int add_to_sockmap(int sock_mapfd, int fd1, int fd2) in add_to_sockmap() argument
306 err = xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap()
312 return xbpf_map_update_elem(sock_mapfd, &key, &value, BPF_NOEXIST); in add_to_sockmap()