Home
last modified time | relevance | path

Searched refs:sock_type (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c214 static int *connect_to_server(int family, int sock_type, const char *addr, in connect_to_server() argument
238 established_socks[i] = connect_to_addr_str(family, sock_type, in connect_to_server()
258 static void remove_seen(int family, int sock_type, const char *addr, __u16 port, in remove_seen() argument
289 static void remove_seen_established(int family, int sock_type, const char *addr, in remove_seen_established() argument
326 static void remove_unseen(int family, int sock_type, const char *addr, in remove_unseen() argument
359 static void remove_unseen_established(int family, int sock_type, in remove_unseen_established() argument
404 static void remove_all(int family, int sock_type, const char *addr, in remove_all() argument
433 static void remove_all_established(int family, int sock_type, const char *addr, in remove_all_established() argument
481 static void add_some(int family, int sock_type, const char *addr, __u16 port, in add_some() argument
496 new_socks = start_reuseport_server(family, sock_type, addr, port, 0, in add_some()
[all …]
/linux/tools/testing/selftests/net/af_unix/
H A Dscm_rights_denial_lsm.c44 int sock_type; in FIXTURE_VARIANT() local
49 .sock_type = SOCK_STREAM, in FIXTURE_VARIANT_ADD()
54 .sock_type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD()
59 .sock_type = SOCK_SEQPACKET, in FIXTURE_VARIANT_ADD()
93 ASSERT_EQ(0, socketpair(AF_UNIX, variant->sock_type, 0, self->sk)); in FIXTURE_SETUP()
/linux/include/net/phonet/
H A Dphonet.h99 int sock_type; member
/linux/net/phonet/
H A Ddatagram.c185 .sock_type = SOCK_DGRAM,
H A Daf_phonet.c82 if (sock->type != pnp->sock_type) { in pn_socket_create()
H A Dpep.c1404 .sock_type = SOCK_SEQPACKET,
/linux/tools/net/ynl/lib/
H A Dynl.c741 int sock_type; in ynl_sock_create() local
754 sock_type = yf->is_classic ? yf->classic_id : NETLINK_GENERIC; in ynl_sock_create()
756 ys->socket = socket(AF_NETLINK, SOCK_RAW, sock_type); in ynl_sock_create()
/linux/tools/testing/selftests/landlock/
H A Dnet_test.c361 int sock_type; in test_sendmsg()
373 opt_len = sizeof(sock_type); in test_sendmsg()
374 ASSERT_EQ(0, getsockopt(client_fd, SOL_SOCKET, SO_TYPE, &sock_type, in test_sendmsg()
389 if (sock_type == SOCK_STREAM && !has_remote_port) { in test_sendmsg()
409 if (sock_type == SOCK_STREAM && !has_remote_port) { in test_sendmsg()
426 } else if (sock_type == SOCK_STREAM) { in test_sendmsg()
357 int sock_type; test_sendmsg() local
/linux/include/linux/
H A Dnet.h107 enum sock_type { enum
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c478 int ret, s, sock_type; in ovpn_socket() local
482 sock_type = SOCK_DGRAM; in ovpn_socket()
484 sock_type = SOCK_STREAM; in ovpn_socket()
488 s = socket(family, sock_type, 0); in ovpn_socket()