Searched refs:socket (Results 626 - 650 of 882) sorted by relevance

<<21222324252627282930>>

/linux-master/tools/testing/selftests/net/
H A Dpsock_tpacket.c7 * A basic test of packet socket's TPACKET_V1/TPACKET_V2/TPACKET_V3 behavior.
10 * Test the setup of the TPACKET socket with different patterns that are
29 #include <sys/socket.h>
101 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0);
103 perror("socket");
395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
397 perror("socket");
H A Dtxtimestamp.c47 #include <sys/socket.h>
516 fd = socket(cfg_use_pf_packet ? PF_PACKET : family,
519 error(1, errno, "socket");
535 /* reset expected key on each new socket */
849 fd = socket(family, type, 0);
851 error(1, errno, "socket rx");
H A Dnettest.c11 #include <sys/socket.h>
353 sd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP);
355 log_err_errno("socket failed");
1349 sd = socket(PF_INET, SOCK_DGRAM, 0);
1351 log_err_errno("socket");
1445 log_err_errno("error binding socket");
1460 log_error("Invalid socket type. Only DGRAM could be used for XFRM\n");
1492 sd = socket(args->version, args->type, args->protocol);
1494 log_err_errno("Error opening socket");
1708 sd = socket(arg
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c17 #include <sys/socket.h>
380 fd = socket(family, type, 0);
381 RET_ERR(fd == -1, "socket()", "fd:%d errno:%d\n", fd, errno);
612 sk_fds[i] = socket(family, type, 0);
613 RET_IF(sk_fds[i] == -1, "socket()", "sk_fds[%d]:%d errno:%d\n",
801 continue; /* test not compatible with socket type */
H A Dbpf_iter.c1124 sock_fd = socket(AF_INET6, SOCK_STREAM, 0);
1125 if (!ASSERT_GE(sock_fd, 0, "socket"))
1172 /* This creates a socket and its local storage. It then runs a task_iter BPF
1173 * program that replaces the existing socket local storage with the tgid of the
1174 * only task owning a file descriptor to this socket, this process, prog_tests.
1175 * It then runs a tcp socket iterator that negates the value in the existing
1176 * socket local storage, the test verifies that the resulting value is -pid.
1188 sock_fd = socket(AF_INET6, SOCK_STREAM, 0);
1189 if (!ASSERT_GE(sock_fd, 0, "socket"))
1253 sock_fd[i] = socket(AF_INET
[all...]
/linux-master/tools/testing/selftests/nci/
H A Dnci_dev.c16 #include <sys/socket.h>
95 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
701 sock = socket(AF_NFC, SOCK_SEQPACKET, NFC_SOCKPROTO_RAW);
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c20 #include <sys/socket.h>
195 sock = socket(a->ai_family, a->ai_socktype, IPPROTO_MPTCP);
214 xerror("could not create listen socket");
236 sock = socket(a->ai_family, a->ai_socktype, proto);
247 xerror("could not create connect socket");
846 /* wait until server bound a socket */
H A Dmptcp_connect.c24 #include <sys/socket.h>
125 fprintf(stderr, "\t-M mark -- set socket packet mark\n");
129 "\t-P [saveWithPeek|saveAfterPeek] -- save data with/after MSG_PEEK form tcp socket\n");
137 fprintf(stderr, "\t-w num -- wait num sec before closing the socket\n");
307 sock = socket(a->ai_family, a->ai_socktype, cfg_sock_proto);
334 fprintf(stderr, "Could not create listen socket\n");
368 sock = socket(a->ai_family, a->ai_socktype, proto);
370 perror("socket");
1228 xerror("can't query out socket queue: %d", errno);
1288 /* the socket coul
[all...]
/linux-master/tools/bpf/bpftool/
H A Dnet.c17 #include <linux/socket.h>
19 #include <sys/socket.h>
115 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
/linux-master/net/core/
H A Dbpf_sk_storage.c83 struct socket *sock;
101 struct socket *sock;
119 struct socket *sock;
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c13 #include <sys/socket.h>
944 sk = socket(AF_INET6, SOCK_STREAM, 0);
1002 sk = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
1024 /* exclude the memory not related to socket connection */
1039 * This test checks socket memory accounting.
1042 * its socket.
1043 * The TCP client interleaves reads from the socket with check whether
/linux-master/net/ceph/
H A Dmessenger_v1.c7 #include <linux/socket.h>
24 static int ceph_tcp_recvmsg(struct socket *sock, void *buf, size_t len)
40 static int ceph_tcp_recvpage(struct socket *sock, struct page *page,
60 static int ceph_tcp_sendmsg(struct socket *sock, struct kvec *iov,
80 static int ceph_tcp_sendpage(struct socket *sock, struct page *page,
416 * write as much of pending kvecs to the socket as we can.
418 * 0 -> socket full, but more to do
462 * 0 -> socket full, but more to do
1324 * Read what we can from the socket.
1470 * Write something to the socket
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_worker.c573 * socket buffer sizes and resync rate settings are mis-configured. */
631 if (connection->data.socket) {
632 struct sock *sk = connection->data.socket->sk;
2107 if (connection->data.socket)
2108 tcp_sock_set_cork(connection->data.socket->sk, false);
2161 if (connection->data.socket) {
2163 tcp_sock_set_cork(connection->data.socket->sk, true);
2165 tcp_sock_set_cork(connection->data.socket->sk, false);
/linux-master/net/bluetooth/rfcomm/
H A Dcore.c197 static int rfcomm_l2sock_create(struct socket **sock)
681 static struct rfcomm_session *rfcomm_session_add(struct socket *sock, int state)
770 struct socket *sock;
1134 struct socket *sock = s->sock;
1388 /* Notify socket layer about incoming connection */
1745 /* no session, so free socket data */
1935 struct socket *sock = s->sock;
1941 /* Get data directly from socket receive queue without copying it. */
1961 struct socket *sock = s->sock, *nsock;
1965 * Avoids unnesesary socket allocation
[all...]
/linux-master/drivers/net/
H A Damt.c615 struct socket *sock;
704 struct socket *sock;
1001 struct socket *sock;
1060 struct socket *sock;
1115 struct socket *sock;
2552 struct socket *sock;
2942 static struct socket *amt_create_sock(struct net *net, __be16 port)
2945 struct socket *sock;
2964 struct socket *sock;
2970 /* Mark socket a
[all...]
/linux-master/drivers/nvme/target/
H A Dtcp.c55 /* Define the socket priority to use for connections were it is desirable
63 MODULE_PARM_DESC(so_priority, "nvmet tcp socket optimize priority: Default 0");
67 * can enable NIC solutions that support socket optimized packet processing
150 struct socket *sock;
205 struct socket *sock;
1554 struct socket *sock = queue->sock;
1688 struct socket *sock = queue->sock;
1703 * Cleanup whatever is sitting in the TCP transmit queue on socket
1712 /* Set socket type of service */
1720 * If the socket i
[all...]
/linux-master/tools/perf/
H A Dbuiltin-stat.c1217 OPT_SET_UINT(0, "per-socket", &stat_config.aggr_mode,
1218 "aggregate counts per processor socket", AGGR_SOCKET),
1386 * level, die and socket populated with the cache instache ID, cache level,
1387 * die and socket for cpu. The function signature is compatible with
1417 [AGGR_SOCKET] = "socket",
1651 id.socket = env->cpu[cpu.cpu].socket_id;
1663 * die_id is relative to socket, so start
1664 * with the socket ID and then add die to
1667 id.socket = env->cpu[cpu.cpu].socket_id;
1720 id.socket
[all...]
H A Dbuiltin-daemon.c20 #include <sys/socket.h>
585 int fd = socket(AF_UNIX, SOCK_STREAM, 0);
588 fprintf(stderr, "socket: %s\n", strerror(errno));
863 int fd = socket(AF_UNIX, SOCK_STREAM, 0);
866 perror("failed: socket");
/linux-master/net/mptcp/
H A Dprotocol.h114 /* MPTCP socket atomic flags */
119 /* MPTCP socket release cb flags */
244 struct socket *lsk;
261 u64 local_key; /* protected by the first subflow socket lock
325 * ONCE annotation, the subflow outside the socket
376 /* the msk socket don't use the backlog, also account for the bulk
486 unsigned long avg_pacing_rate; /* protected by msk socket lock */
551 * protected by the msk socket lock
645 /* the caller held the subflow bh socket lock */
702 void mptcp_sock_graft(struct sock *sk, struct socket *paren
[all...]
/linux-master/net/rose/
H A Drose_subr.c8 #include <linux/socket.h>
/linux-master/net/ax25/
H A Dax25_std_in.c16 #include <linux/socket.h>
72 /* For WAIT_SABM connections we will produce an accept ready socket here */
/linux-master/drivers/usb/usbip/
H A Dstub_tx.c7 #include <linux/socket.h>
/linux-master/net/atm/
H A Dpppoatm.c121 * set the BLOCKED bit while the socket is still locked. We know that
164 * Unbind from PPP - currently we only do this when closing the socket,
305 * the socket. It needs to be seen by the time our ->release_cb gets
439 static int pppoatm_ioctl(struct socket *sock, unsigned int cmd,
/linux-master/fs/ocfs2/dlm/
H A Ddlmconvert.c19 #include <linux/socket.h>
H A Ddlmast.c19 #include <linux/socket.h>

Completed in 505 milliseconds

<<21222324252627282930>>