/xnu-2422.115.4/bsd/net/ |
H A D | kext_net.h | 30 * Support for socket filter kernel extensions 47 struct socket; 52 extern void sflt_initsock(struct socket *so); 53 extern void sflt_termsock(struct socket *so); 54 extern errno_t sflt_attach_internal(struct socket *so, sflt_handle handle); 55 extern void sflt_notify(struct socket *so, sflt_event_t event, void *param); 56 extern int sflt_ioctl(struct socket *so, u_long cmd, caddr_t data); 57 extern int sflt_bind(struct socket *so, const struct sockaddr *nam); 58 extern int sflt_listen(struct socket *so); 59 extern int sflt_accept(struct socket *hea [all...] |
H A D | raw_cb.h | 70 * to tie a socket to the generic raw interface. 74 struct socket *rcb_socket; /* back pointer to socket */ 76 struct sockaddr *rcb_laddr; /* socket's address */ 84 * Nominal space allocated to a raw socket. 92 extern int raw_attach(struct socket *, int);
|
H A D | kpi_interfacefilter.c | 33 #include <sys/socket.h>
|
H A D | multicast_list.h | 34 #include <sys/socket.h>
|
/xnu-2422.115.4/libsyscall/wrappers/legacy/ |
H A D | listen.c | 36 #include <sys/socket.h> 45 listen(int socket, int backlog) argument 47 int ret = __listen(socket, backlog);
|
H A D | getpeername.c | 36 #include <sys/socket.h> 45 getpeername(int socket, struct sockaddr * __restrict address, argument 48 int ret = __getpeername(socket, address, address_len);
|
H A D | getsockname.c | 36 #include <sys/socket.h> 45 getsockname(int socket, struct sockaddr * __restrict address, argument 48 int ret = __getsockname(socket, address, address_len);
|
H A D | recvmsg.c | 36 #include <sys/socket.h>
|
H A D | socketpair.c | 37 #include <sys/socket.h>
|
H A D | accept.c | 37 #include <sys/socket.h>
|
/xnu-2422.115.4/bsd/sys/ |
H A D | protosw.h | 76 #include <sys/socket.h> 85 struct socket; 108 short pr_type; /* socket type used for */ 118 (struct mbuf *m, struct socket *so); 122 (struct socket *, struct sockopt *); 142 (struct socket *so, int locktype, void *debug); 144 (struct socket *so, int locktype, void *debug); 146 (struct socket *so, int locktype); 187 * socket filters is only applicable on the original protosw instance. 195 u_int16_t pr_type; /* socket typ [all...] |
H A D | un.h | 70 /* [XSI] The sa_family_t type shall be defined as described in <sys/socket.h> */ 102 struct socket; 105 int uipc_usrreq(struct socket *so, int req, struct mbuf *m, 107 int uipc_ctloutput (struct socket *so, struct sockopt *sopt); 108 int unp_connect2(struct socket *so, struct socket *so2); 113 int unp_lock(struct socket *, int, void *); 114 int unp_unlock(struct socket *, int, void *); 115 lck_mtx_t* unp_getlock(struct socket *, int);
|
H A D | socketvar.h | 145 * Kernel structure per socket. 150 struct socket { struct 152 short so_type; /* generic type, see socket.h */ 153 u_int32_t so_options; /* from socket call, see socket.h */ 161 * If so_head is 0, socket is not related to an accept. 162 * For head socket so_incomp queues partially completed connections, 167 * and limit on number of queued connections for this socket. 169 struct socket *so_head; /* back pointer to accept socket */ [all...] |
/xnu-2422.115.4/bsd/netinet/ |
H A D | flow_divert.h | 71 void flow_divert_detach(struct socket *so); 72 errno_t flow_divert_token_set(struct socket *so, struct sockopt *sopt); 73 errno_t flow_divert_token_get(struct socket *so, struct sockopt *sopt); 74 errno_t flow_divert_pcb_init(struct socket *so, uint32_t ctl_unit); 75 errno_t flow_divert_check_policy(struct socket *so, proc_t p, boolean_t match_delegate, uint32_t *ctl_unit); 76 errno_t flow_divert_connect_out(struct socket *so, struct sockaddr *to, proc_t p); 77 void flow_divert_so_init(struct socket *so, proc_t p); 78 boolean_t flow_divert_is_dns_service(struct socket *so);
|
H A D | ip_divert.h | 69 * Divert socket definitions. 114 div_getlock(struct socket *, int ); 115 int div_unlock(struct socket *, int, void *); 116 int div_lock(struct socket *, int , void *);
|
H A D | in_dhcp.h | 39 inet_aifaddr(struct socket * so, const char * name,
|
H A D | udp_var.h | 94 u_int32_t udps_noport; /* no socket on port */ 96 u_int32_t udps_fullsock; /* not delivered, input socket full */ 103 u_int32_t udps_noportmcast; /* of no socket on port, multicast */ 167 extern int udp_ctloutput(struct socket *, struct sockopt *); 170 extern int udp_connectx_common(struct socket *, int, struct sockaddr_list **, 174 extern int udp_shutdown(struct socket *so); 175 extern int udp_lock(struct socket *, int, void *); 176 extern int udp_unlock(struct socket *, int, void *); 177 extern lck_mtx_t *udp_getlock(struct socket *, int);
|
/xnu-2422.115.4/bsd/netkey/ |
H A D | keysock.h | 36 /* statistics for pfkey socket */ 58 u_quad_t sockerr; /* # of socket related errors */ 72 int kp_registered; /* registered socket */ 78 extern int key_output(struct mbuf *, struct socket* so); 82 extern int key_usrreq(struct socket *, 85 extern int key_sendup(struct socket *, struct sadb_msg *, u_int, int); 86 extern int key_sendup_mbuf(struct socket *, struct mbuf *, int);
|
H A D | key.h | 48 struct socket; 66 extern void key_freeso(struct socket *); 76 extern void key_freereg(struct socket *); 77 extern int key_parse(struct mbuf *, struct socket *);
|
/xnu-2422.115.4/bsd/netinet6/ |
H A D | in6_pcb.h | 116 extern int in6_getpeeraddr(struct socket *, struct sockaddr **); 117 extern int in6_getpeeraddr_s(struct socket *, struct sockaddr_storage *); 118 extern int in6_getsockaddr(struct socket *, struct sockaddr **); 119 extern int in6_getsockaddr_s(struct socket *, struct sockaddr_storage *); 120 extern int in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam); 121 extern int in6_mapped_peeraddr(struct socket *so, struct sockaddr **nam);
|
H A D | ip6protosw.h | 112 struct socket; 159 u_int16_t pr_type; /* socket type used for */ 168 (struct mbuf *m, struct socket *so, 173 (struct socket *, struct sockopt *); 187 (struct socket *so, int locktype, void *debug); 189 (struct socket *so, int locktype, void *debug); 191 (struct socket *so, int locktype);
|
H A D | udp6_var.h | 105 extern int udp6_connect(struct socket *, struct sockaddr *, struct proc *);
|
/xnu-2422.115.4/tools/tests/perf_index/ |
H A D | test_controller.py | 3 import socket 21 control_socket = socket.socket() 22 control_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 38 client_socket.shutdown(socket.SHUT_WR)
|
/xnu-2422.115.4/bsd/dev/dtrace/scripts/ |
H A D | socket.d | 59 struct socket *socket; 62 translator socketinfo_t < struct socket *T > { 74 socket = T;
|
/xnu-2422.115.4/security/ |
H A D | mac_socket.c | 80 #include <sys/socket.h> 129 mac_socket_label_init(struct socket *so, int flag) 161 mac_socket_label_destroy(struct socket *so) 187 error = MAC_EXTERNALIZE(socket, label, elements, outbuf, outbuflen); 208 error = MAC_INTERNALIZE(socket, label, string); 214 mac_socket_label_associate(struct ucred *cred, struct socket *so) 224 mac_socket_label_associate_accept(struct socket *oldsocket, 225 struct socket *newsocket) 237 mac_socketpeer_label_associate_mbuf(struct mbuf *mbuf, struct socket *so) 253 __unused struct socket *s [all...] |