Lines Matching refs:socket
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 to address */
212 #define PRU_SOCKADDR 15 /* fetch socket's address */
250 int (*pru_abort)(struct socket *so);
251 int (*pru_accept)(struct socket *so, struct sockaddr **nam);
252 int (*pru_attach)(struct socket *so, int proto, struct proc *p);
253 int (*pru_bind)(struct socket *so, struct sockaddr *nam,
255 int (*pru_connect)(struct socket *so, struct sockaddr *nam,
257 int (*pru_connect2)(struct socket *so1, struct socket *so2);
258 int (*pru_control)(struct socket *so, u_long cmd, caddr_t data,
260 int (*pru_detach)(struct socket *so);
261 int (*pru_disconnect)(struct socket *so);
262 int (*pru_listen)(struct socket *so, struct proc *p);
263 int (*pru_peeraddr)(struct socket *so, struct sockaddr **nam);
264 int (*pru_rcvd)(struct socket *so, int flags);
265 int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
266 int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
272 int (*pru_sense)(struct socket *so, void *sb, int isstat64);
273 int (*pru_shutdown)(struct socket *so);
274 int (*pru_sockaddr)(struct socket *so, struct sockaddr **nam);
284 int (*pru_sosend)(struct socket *so, struct sockaddr *addr,
287 int (*pru_soreceive)(struct socket *so,
291 int (*pru_sopoll)(struct socket *so, int events,
297 extern int pru_abort_notsupp(struct socket *so);
298 extern int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
299 extern int pru_attach_notsupp(struct socket *so, int proto,
301 extern int pru_bind_notsupp(struct socket *so, struct sockaddr *nam,
303 extern int pru_connect_notsupp(struct socket *so, struct sockaddr *nam,
305 extern int pru_connect2_notsupp(struct socket *so1, struct socket *so2);
306 extern int pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
308 extern int pru_detach_notsupp(struct socket *so);
309 extern int pru_disconnect_notsupp(struct socket *so);
310 extern int pru_listen_notsupp(struct socket *so, struct proc *p);
311 extern int pru_peeraddr_notsupp(struct socket *so,
313 extern int pru_rcvd_notsupp(struct socket *so, int flags);
314 extern int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m,
316 extern int pru_send_notsupp(struct socket *so, int flags, struct mbuf *m,
319 extern int pru_sense_null(struct socket *so, void * sb, int isstat64);
320 extern int pru_shutdown_notsupp(struct socket *so);
321 extern int pru_sockaddr_notsupp(struct socket *so,
323 extern int pru_sosend_notsupp(struct socket *so, struct sockaddr *addr,
326 extern int pru_soreceive_notsupp(struct socket *so,
330 extern int pru_sopoll_notsupp(struct socket *so, int events,
385 * req is one of the actions listed below, so is a (struct socket *),
387 * optname is a protocol dependent socket option request,