/linux-master/tools/testing/selftests/net/ |
H A D | tcp_inq.c | 18 #include <sys/socket.h> 124 server_fd = socket(family, SOCK_STREAM, 0); 126 error(1, errno, "server socket"); 140 fd = socket(family, SOCK_STREAM, 0); 142 error(1, errno, "client socket");
|
H A D | txring_overwrite.c | 27 #include <sys/socket.h> 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); 81 error(1, errno, "socket r"); 92 fdt = socket(PF_PACKET, SOCK_RAW, 0); 94 error(1, errno, "socket t");
|
H A D | fin_ack_lat.c | 11 #include <sys/socket.h> 42 sock = socket(AF_INET, SOCK_STREAM, 0); 44 error(-1, errno, "socket creation"); 121 sock = socket(AF_INET, SOCK_STREAM, 0); 123 error(-1, errno, "socket");
|
H A D | sctp_hello.c | 42 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); 44 printf("failed to create socket\n"); 94 lsk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP);
|
H A D | hwtstamp_config.c | 12 #include <sys/socket.h> 110 sock = socket(AF_INET, SOCK_DGRAM, 0); 112 perror("socket");
|
/linux-master/drivers/net/ppp/ |
H A D | pppox.c | 5 * PPPoX --- Generic PPP encapsulation socket family 67 int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) 103 int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) 114 static int pppox_create(struct net *net, struct socket *sock, int protocol, 156 MODULE_DESCRIPTION("PPP over Ethernet driver (generic socket layer)");
|
/linux-master/arch/um/drivers/ |
H A D | daemon_user.c | 14 #include <sys/socket.h> 56 pri->control = socket(AF_UNIX, SOCK_STREAM, 0); 59 printk(UM_KERN_ERR "daemon_open : control socket failed, " 72 fd = socket(AF_UNIX, SOCK_DGRAM, 0); 75 printk(UM_KERN_ERR "daemon_open : data socket failed, " 108 printk(UM_KERN_ERR "daemon_open : read of data socket failed, "
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_ktls.c | 17 s = socket(family, SOCK_STREAM, 0); 18 if (!ASSERT_GE(s, 0, "socket")) 35 /* Disconnect (unhash) a kTLS socket after removing it from sockmap. */ 50 cli = socket(family, SOCK_STREAM, 0); 51 if (!ASSERT_GE(cli, 0, "socket")) 97 PRINT_FAIL("unsupported socket family %d", family); 101 s = socket(family, SOCK_STREAM, 0); 102 if (!ASSERT_GE(s, 0, "socket"))
|
H A D | lsm_cgroup.c | 4 #include <sys/socket.h> 177 fd = socket(AF_UNIX, SOCK_STREAM, 0); 182 ASSERT_LT(fd, 0, "socket(AF_UNIX)"); 187 fd = socket(AF_INET6, SOCK_STREAM, 0); 188 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) 201 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, 202 "socket(AF_PACKET, ..., ETH_P_ALL)"); 204 fd = socket(AF_PACKET, SOCK_RAW, 0); 205 ASSERT_GE(fd, 0, "socket(AF_PACKET, ..., 0)"); 278 fd = socket(AF_INET [all...] |
H A D | bpf_iter_setsockopt_unix.c | 3 #include <sys/socket.h> 19 fd = socket(AF_UNIX, SOCK_STREAM, 0); 20 if (!ASSERT_NEQ(fd, -1, "socket"))
|
/linux-master/net/rxrpc/ |
H A D | rxperf.c | 69 static struct socket *rxperf_socket; 176 * Open an rxrpc socket and bind it to be a server for callback notifications 177 * - the socket is left in blocking mode and non-blocking ops use MSG_DONTWAIT 182 struct socket *socket; local 186 &socket); 190 socket->sk->sk_allocation = GFP_NOFS; 192 /* bind the callback manager's address to make this a server socket */ 201 ret = rxrpc_sock_set_min_security_level(socket->sk, 206 ret = rxrpc_sock_set_security_keyring(socket [all...] |
H A D | af_rxrpc.c | 49 * see if an RxRPC socket is currently writable 128 * bind a local address to an RxRPC socket 130 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len) 208 * set the number of pending calls permitted on a listening socket 210 static int rxrpc_listen(struct socket *sock, int backlog) 263 * @sock: The socket through which it will be accessed 270 struct rxrpc_peer *rxrpc_kernel_lookup_peer(struct socket *sock, 308 * @sock: The socket on which to make the call 310 * @key: The security context to use (defaults to socket setting) 315 * @notify_rx: Where to send notifications instead of socket queu [all...] |
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | diag_uid.c | 12 #include <sys/socket.h> 54 self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); 57 self->unix_fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
/linux-master/net/atm/ |
H A D | ioctl.c | 11 #include <linux/net.h> /* struct socket, struct proto_ops */ 51 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, 218 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) 277 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, 289 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, 301 static int do_atm_ioctl(struct socket *sock, unsigned int cmd32, 354 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
|
/linux-master/include/linux/ |
H A D | socket.h | 6 #include <asm/socket.h> /* arch-dependent defines */ 11 #include <uapi/linux/socket.h> 16 struct socket; 56 void *msg_name; /* ptr to socket address structure */ 57 int msg_namelen; /* size of socket address structure */ 59 int msg_inq; /* output, data left in socket */ 83 void __user *msg_name; /* ptr to socket address structure */ 84 int msg_namelen; /* size of socket address structure */ 419 extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg, 421 extern long __sys_recvmsg_sock(struct socket *soc [all...] |
/linux-master/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 6 #include <asm/socket.h> /* arch-dependent defines */ 11 #include <uapi/linux/socket.h> 16 struct socket; 56 void *msg_name; /* ptr to socket address structure */ 57 int msg_namelen; /* size of socket address structure */ 59 int msg_inq; /* output, data left in socket */ 83 void __user *msg_name; /* ptr to socket address structure */ 84 int msg_namelen; /* size of socket address structure */ 419 extern long __sys_sendmsg_sock(struct socket *sock, struct msghdr *msg, 421 extern long __sys_recvmsg_sock(struct socket *soc [all...] |
/linux-master/net/bluetooth/bnep/ |
H A D | bnep.h | 110 int sock; /* Connected socket */ 139 int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock); 160 struct socket *sock;
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_bpftool.py | 8 import socket namespace 47 for iface in socket.if_nameindex():
|
/linux-master/net/handshake/ |
H A D | alert.c | 11 #include <linux/socket.h> 27 * tls_alert_send - send a TLS Alert on a kTLS socket 28 * @sock: open kTLS socket to send on 34 int tls_alert_send(struct socket *sock, u8 level, u8 description) 69 * @sk: socket (for IP address information) 91 * @sk: socket (for IP address information)
|
/linux-master/drivers/pcmcia/ |
H A D | tcic.c | 55 MODULE_DESCRIPTION("Databook TCIC-2 PCMCIA socket driver"); 65 /* Specify a socket number to ignore */ 108 struct pcmcia_socket socket; member in struct:tcic_socket 332 This returns the revision code for the specified socket. 407 socket_table[sockets].socket.owner = THIS_MODULE; 410 socket_table[sockets].socket.features = SS_CAP_PCCARD | SS_CAP_MEM_ALIGN; 412 socket_table[sockets].socket.irq_mask = 0x4cf8; 414 socket_table[sockets].socket.map_size = 0x1000; 454 socket_table[i].socket.irq_mask = mask; 473 if (socket_table[0].socket [all...] |
/linux-master/security/selinux/include/ |
H A D | netlabel.h | 47 int selinux_netlbl_socket_setsockopt(struct socket *sock, int level, 120 static inline int selinux_netlbl_socket_setsockopt(struct socket *sock,
|
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | kconfig.c | 51 sk = socket(test_family, SOCK_STREAM, IPPROTO_TCP); 53 test_print("socket(): %m"); 78 sk = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 80 test_print("socket(): %m");
|
/linux-master/net/bluetooth/rfcomm/ |
H A D | sock.c | 124 /* Find socket with channel and source bdaddr. 165 /* Detach DLC if it's owned by this socket */ 189 /* Kill socket (only if zapped and orphan) 190 * Must be called on unlocked socket. 209 BT_DBG("sk %p state %d socket %p", sk, sk->sk_state, sk->sk_socket); 229 /* Close socket. 230 * Must be called on unlocked socket. 271 static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, 305 static int rfcomm_sock_create(struct net *net, struct socket *sock, 327 static int rfcomm_sock_bind(struct socket *soc [all...] |
/linux-master/drivers/isdn/mISDN/ |
H A D | l1oip_core.c | 201 The complete socket opening and closing is done by a thread. 202 When the thread opened a socket, the hc->socket descriptor is set. Whenever a 203 packet shall be sent to the socket, the hc->socket must be checked whether not 204 NULL. To prevent change in socket descriptor, the hc->socket_lock must be used. 205 To change the socket, a recall of l1oip_socket_open() will safely kill the 206 socket process and create a new one. 261 * send a frame via socket, if open and restart timer 269 struct socket *socke local 643 struct socket *socket = NULL; local [all...] |
/linux-master/net/phonet/ |
H A D | socket.c | 3 * File: socket.c 28 static int pn_socket_release(struct socket *sock) 63 * Find address based on socket address, match only certain fields. 77 BUG_ON(!pn->sobject); /* unbound socket */ 82 /* Look up socket by port */ 156 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) 193 /* Enable RX on the socket */ 202 static int pn_socket_autobind(struct socket *sock) 214 return 0; /* socket was already bound */ 217 static int pn_socket_connect(struct socket *soc [all...] |