| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sock_iter_batch.c | 214 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 D | scm_rights_denial_lsm.c | 44 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 D | phonet.h | 99 int sock_type; member
|
| /linux/net/phonet/ |
| H A D | datagram.c | 185 .sock_type = SOCK_DGRAM,
|
| H A D | af_phonet.c | 82 if (sock->type != pnp->sock_type) { in pn_socket_create()
|
| H A D | pep.c | 1404 .sock_type = SOCK_SEQPACKET,
|
| /linux/tools/net/ynl/lib/ |
| H A D | ynl.c | 741 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 D | net_test.c | 361 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 D | net.h | 107 enum sock_type { enum
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | ovpn-cli.c | 478 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()
|