/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | protosw.h | 81 struct socket; 118 short pr_type; /* socket type used for */ 125 int (*pr_output)(struct mbuf *m, struct socket *so); 129 int (*pr_ctloutput)(struct socket *, struct sockopt *); 147 int (*pr_lock) (struct socket *so, int locktype, int debug); /* lock function for protocol */ 148 int (*pr_unlock) (struct socket *so, int locktype, int debug); /* unlock for protocol */ 150 lck_mtx_t * (*pr_getlock) (struct socket *so, int locktype); 152 void * (*pr_getlock) (struct socket *so, int locktype); 188 * where up is a (struct socket *), req is one of these requests, 199 #define PRU_BIND 2 /* bind socket t [all...] |
H A D | socketvar.h | 102 * Kernel structure per socket. 113 /* We don't support BSD style socket filters */ 117 struct socket { struct 119 short so_type; /* generic type, see socket.h */ 120 short so_options; /* from socket call, see socket.h */ 128 * If so_head is 0, socket is not related to an accept. 129 * For head socket so_incomp queues partially completed connections, 134 * and limit on number of queued connections for this socket. 136 struct socket *so_hea [all...] |
H A D | un.h | 70 /* [XSI] The sa_family_t type shall be defined as described in <sys/socket.h> */ 95 struct socket; 98 int uipc_usrreq(struct socket *so, int req, struct mbuf *m, 100 int uipc_ctloutput (struct socket *so, struct sockopt *sopt); 101 int unp_connect2(struct socket *so, struct socket *so2);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | kext_net.h | 30 * Support for socket filter kernel extensions 60 struct socket *sfe_socket; 83 void sflt_initsock(struct socket *so); 84 void sflt_termsock(struct socket *so); 85 void sflt_use(struct socket *so); 86 void sflt_unuse(struct socket *so); 87 void sflt_notify(struct socket *so, sflt_event_t event, void *param); 88 int sflt_data_in(struct socket *so, const struct sockaddr *from, mbuf_t *data, 90 int sflt_attach_private(struct socket *so, struct socket_filter *filter, sflt_handle handle, int locked); 101 * Interface structure for inserting an installed socket NK [all...] |
H A D | raw_cb.h | 72 * to tie a socket to the generic raw interface. 76 struct socket *rcb_socket; /* back pointer to socket */ 78 struct sockaddr *rcb_laddr; /* socket's address */ 86 * Nominal space allocated to a raw socket. 95 int raw_attach(struct socket *, int);
|
H A D | kext_net.c | 43 #include <sys/socket.h> 133 * active NKEs for this socket. Then invoke its "attach/create" entry. 138 nke_insert(struct socket *so, struct so_nke *np) 227 static int sym_fix_soclose(struct socket *, struct kextcb *); 228 static int sym_fix_sofree(struct socket *, struct kextcb *); 229 static int sym_fix_soconnect(struct socket *, struct sockaddr *, struct kextcb *); 230 static int sym_fix_soisconnected(struct socket *, struct kextcb *); 231 static int sym_fix_sosend(struct socket *, struct sockaddr **, struct uio **, struct mbuf **, 233 static int sym_fix_socantrcvmore(struct socket *, struct kextcb *); 234 static int sym_fix_socontrol(struct socket *, struc [all...] |
H A D | kpi_interfacefilter.c | 33 #include <sys/socket.h>
|
H A D | multicast_list.h | 34 #include <sys/socket.h>
|
H A D | raw_cb.c | 65 #include <sys/socket.h> 90 * of buffer space for the socket. 93 raw_attach(struct socket *so, int proto) 119 * socket resources. 124 struct socket *so = rp->rcb_socket; 164 raw_bind(struct socket *so, struct mbuf *nam)
|
H A D | raw_usrreq.c | 70 #include <sys/socket.h> 101 * Raw protocol input routine. Find the socket 115 struct socket *last; 119 //####LD socket we'll find and need to append to is unlocked. 120 //####LD calls from the output (locked) path need to make sure the socket is not locked when 183 raw_uabort(struct socket *so) 205 raw_uattach(struct socket *so, int proto, __unused struct proc *p) 217 raw_ubind(__unused struct socket *so, __unused struct sockaddr *nam, __unused struct proc *p) 223 raw_uconnect(__unused struct socket *so, __unused struct sockaddr *nam, __unused struct proc *p) 232 raw_udetach(struct socket *s [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | ip6protosw.h | 85 struct socket; 124 short pr_type; /* socket type used for */ 131 int (*pr_output)(struct mbuf *m, struct socket *so, 136 int (*pr_ctloutput)(struct socket *, struct sockopt *); 139 int (*pr_usrreq)(struct socket *, int, struct mbuf *, 158 int (*pr_lock) (struct socket *so, int locktype, int debug); /* lock function for protocol */ 159 int (*pr_unlock) (struct socket *so, int locktype, int debug); /* unlock for protocol */ 161 lck_mtx_t * (*pr_getlock) (struct socket *so, int locktype); /* unlock for protocol */ 163 void * (*pr_getlock) (struct socket *so, int locktype); /* unlock for protocol */
|
H A D | in6_pcb.h | 79 int in6_pcballoc(struct socket *, struct inpcbinfo *, struct proc *); 102 int in6_setpeeraddr(struct socket *so, struct sockaddr **nam); 103 int in6_setsockaddr(struct socket *so, struct sockaddr **nam); 104 int in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam); 105 int in6_mapped_peeraddr(struct socket *so, struct sockaddr **nam);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/ |
H A D | keysock.h | 36 /* statistics for pfkey socket */ 58 u_quad_t sockerr; /* # of socket related errors */ 74 int kp_registered; /* registered socket */ 80 extern int key_output(struct mbuf *, struct socket* so); 84 extern int key_usrreq(struct socket *, 87 extern int key_sendup(struct socket *, struct sadb_msg *, u_int, int); 88 extern int key_sendup_mbuf(struct socket *, struct mbuf *, int);
|
H A D | key.h | 48 struct socket; 62 extern void key_freeso(struct socket *); 72 extern void key_freereg(struct socket *); 73 extern int key_parse(struct mbuf *, struct socket *);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | ip_divert.h | 40 * Divert socket definitions. 85 div_getlock(struct socket *, int ); 86 int div_unlock(struct socket *, int, int); 87 int div_lock(struct socket *, int , int );
|
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 */ 104 /* of no socket on port, arrived as multicast */ 140 int udp_ctloutput(struct socket *, struct sockopt *); 146 int udp_shutdown(struct socket *so); 147 int udp_lock (struct socket *, int, int); 148 int udp_unlock (struct socket *, int, int); 151 lck_mtx_t * udp_getlock (struct socket *, int); 153 void * udp_getlock (struct socket *, int);
|
H A D | ip_var.h | 139 u_short imo_num_memberships; /* no. memberships this socket */ 219 extern struct socket *ip_rsvpd; /* reservation protocol daemon */ 220 extern struct socket *ip_mrouter; /* multicast routing daemon */ 227 int ip_ctloutput(struct socket *, struct sockopt *sopt); 249 int rip_ctloutput(struct socket *, struct sockopt *); 253 int rip_output(struct mbuf *, struct socket *, u_long); 254 int rip_unlock(struct socket *, int, int); 257 int ip_rsvp_init(struct socket *); 259 int ip_rsvp_vif_init(struct socket *, struct sockopt *); 260 int ip_rsvp_vif_done(struct socket *, struc [all...] |
H A D | in_dhcp.h | 39 inet_aifaddr(struct socket * so, const char * name,
|
/macosx-10.5.8/xnu-1228.15.4/security/ |
H A D | mac_socket.c | 80 #include <sys/socket.h> 135 mac_socket_label_init(struct socket *so, int flag) 167 mac_socket_label_destroy(struct socket *so) 193 error = MAC_EXTERNALIZE(socket, label, elements, outbuf, outbuflen); 214 error = MAC_INTERNALIZE(socket, label, string); 220 mac_socket_label_associate(struct ucred *cred, struct socket *so) 230 mac_socket_label_associate_accept(struct socket *oldsocket, 231 struct socket *newsocket) 243 mac_socketpeer_label_associate_mbuf(struct mbuf *mbuf, struct socket *so) 259 __unused struct socket *s [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | ddp.h | 50 /* DDP socket definitions */ 55 #define DDP_SOCKET_LAST 253 /* Last socket in any range */ 63 #define RTMP_SOCKET 1 /* RTMP socket number */ 64 #define NBP_SOCKET 2 /* NIS socket number */ 65 #define EP_SOCKET 4 /* EP socket number */ 66 #define ZIP_SOCKET 6 /* ZIP socket number */ 87 at_socket dst_socket; /* Destination socket number */ 88 at_socket src_socket; /* Source socket number */ 190 int ddp_pru_abort(struct socket *so); 192 int ddp_pru_attach(struct socket *s [all...] |
H A D | atp_open.c | 50 #include <sys/socket.h> 83 dPrintf(D_M_ATP, D_L_WARNING, ("atp_input: no socket, skt=%d\n", 229 int socket; local 241 socket = atp->atp_socket_no; 242 if (socket != -1) 243 atp_inputQ[socket] = (gref_t *)1; 261 if (flag && (socket == -1)) 271 if (socket != -1) { 272 pid = (pid_t)atp_pidM[socket]; 273 atp_pidM[socket] [all...] |
H A D | ddp_usrreq.c | 47 #include <sys/socket.h> 72 int ddp_pru_control(struct socket *so, u_long cmd, caddr_t data, 79 int ddp_pru_attach(struct socket *so, int proto, 101 int ddp_pru_disconnect(struct socket *so) 120 int ddp_pru_abort(struct socket *so) 133 int ddp_pru_detach(struct socket *so) 144 int ddp_pru_shutdown(struct socket *so) 156 int ddp_pru_bind(struct socket *so, struct sockaddr *nam, 168 int ddp_pru_send(struct socket *so, __unused int flags, struct mbuf *m, 251 int ddp_pru_sockaddr(struct socket *s [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | sys_domain.c | 34 #include <sys/socket.h>
|
H A D | sys_socket.c | 74 #include <sys/socket.h> 102 extern int soo_stat(struct socket *, void *, int); 119 struct socket *so; 125 int (*fsoreceive)(struct socket *so2, struct sockaddr **paddr, 129 if ((so = (struct socket *)fp->f_fglob->fg_data) == NULL) { 152 struct socket *so; 154 int (*fsosend)(struct socket *so2, struct sockaddr *addr, 163 if ((so = (struct socket *)fp->f_fglob->fg_data) == NULL) { 169 /* JMM - have to fetch the socket's remote addr */ 179 /* Generation of SIGPIPE can be controlled per socket */ [all...] |
H A D | kpi_socketfilter.c | 31 #include <sys/socket.h> 59 lck_group = lck_grp_alloc_init("socket filter lock", grp_attrib); 69 struct socket *so) 85 struct socket *so) 99 struct socket *so) 106 struct socket *so) 125 struct socket *so, 153 struct socket *so, 196 struct socket *so, 220 /* allocate the socket filte 396 sflt_attach( socket_t socket, sflt_handle handle) argument 407 sflt_detach( socket_t socket, sflt_handle handle) argument [all...] |