- uint32_t pru_flags; /* see PRUF flags below */
- int (*pru_abort)(struct socket *);
- int (*pru_accept)(struct socket *, struct sockaddr **);
- int (*pru_attach)(struct socket *, int proto, struct proc *);
- int (*pru_bind)(struct socket *, struct sockaddr *, struct proc *);
- int (*pru_connect)(struct socket *, struct sockaddr *,
- struct proc *);
- int (*pru_connect2)(struct socket *, struct socket *);
- int (*pru_connectx)(struct socket *, struct sockaddr_list **,
- struct sockaddr_list **, struct proc *, uint32_t,
- sae_associd_t, sae_connid_t *, uint32_t, void *, uint32_t,
- struct uio *, user_ssize_t *);
- int (*pru_control)(struct socket *, u_long, caddr_t,
- struct ifnet *, struct proc *);
- int (*pru_detach)(struct socket *);
- int (*pru_disconnect)(struct socket *);
- int (*pru_disconnectx)(struct socket *,
- sae_associd_t, sae_connid_t);
- int (*pru_listen)(struct socket *, struct proc *);
- int (*pru_peeloff)(struct socket *,
- sae_associd_t, struct socket **);
- int (*pru_peeraddr)(struct socket *, struct sockaddr **);
- int (*pru_rcvd)(struct socket *, int);
- int (*pru_rcvoob)(struct socket *, struct mbuf *, int);
- int (*pru_send)(struct socket *, int, struct mbuf *,
- struct sockaddr *, struct mbuf *, struct proc *);
- int (*pru_send_list)(struct socket *, int, struct mbuf *,
- struct sockaddr *, struct mbuf *, struct proc *);
-#define PRUS_OOB 0x1
-#define PRUS_EOF 0x2
-#define PRUS_MORETOCOME 0x4
- int (*pru_sense)(struct socket *, void *, int);
- int (*pru_shutdown)(struct socket *);
- int (*pru_sockaddr)(struct socket *, struct sockaddr **);
- int (*pru_sopoll)(struct socket *, int, struct ucred *, void *);
- int (*pru_soreceive)(struct socket *, struct sockaddr **,
- struct uio *, struct mbuf **, struct mbuf **, int *);
- int (*pru_soreceive_list)(struct socket *, struct recv_msg_elem *, u_int,
- int *);
- int (*pru_sosend)(struct socket *, struct sockaddr *,
- struct uio *, struct mbuf *, struct mbuf *, int);
- int (*pru_sosend_list)(struct socket *, struct uio **, u_int, int);
- int (*pru_socheckopt)(struct socket *, struct sockopt *);
- int (*pru_preconnect)(struct socket *so);
+ uint32_t pru_flags; /* see PRUF flags below */
+ int (*pru_abort)(struct socket *);
+ int (*pru_accept)(struct socket *, struct sockaddr **);
+ int (*pru_attach)(struct socket *, int proto, struct proc *);
+ int (*pru_bind)(struct socket *, struct sockaddr *, struct proc *);
+ int (*pru_connect)(struct socket *, struct sockaddr *,
+ struct proc *);
+ int (*pru_connect2)(struct socket *, struct socket *);
+ int (*pru_connectx)(struct socket *, struct sockaddr *,
+ struct sockaddr *, struct proc *, uint32_t,
+ sae_associd_t, sae_connid_t *, uint32_t, void *, uint32_t,
+ struct uio *, user_ssize_t *);
+ int (*pru_control)(struct socket *, u_long, caddr_t,
+ struct ifnet *, struct proc *);
+ int (*pru_detach)(struct socket *);
+ int (*pru_disconnect)(struct socket *);
+ int (*pru_disconnectx)(struct socket *,
+ sae_associd_t, sae_connid_t);
+ int (*pru_listen)(struct socket *, struct proc *);
+ int (*pru_peeraddr)(struct socket *, struct sockaddr **);
+ int (*pru_rcvd)(struct socket *, int);
+ int (*pru_rcvoob)(struct socket *, struct mbuf *, int);
+ int (*pru_send)(struct socket *, int, struct mbuf *,
+ struct sockaddr *, struct mbuf *, struct proc *);
+ int (*pru_send_list)(struct socket *, int, struct mbuf *,
+ struct sockaddr *, struct mbuf *, struct proc *);
+#define PRUS_OOB 0x1
+#define PRUS_EOF 0x2
+#define PRUS_MORETOCOME 0x4
+ int (*pru_sense)(struct socket *, void *, int);
+ int (*pru_shutdown)(struct socket *);
+ int (*pru_sockaddr)(struct socket *, struct sockaddr **);
+ int (*pru_sopoll)(struct socket *, int, struct ucred *, void *);
+ int (*pru_soreceive)(struct socket *, struct sockaddr **,
+ struct uio *, struct mbuf **, struct mbuf **, int *);
+ int (*pru_soreceive_list)(struct socket *, struct recv_msg_elem *, u_int,
+ int *);
+ int (*pru_sosend)(struct socket *, struct sockaddr *,
+ struct uio *, struct mbuf *, struct mbuf *, int);
+ int (*pru_sosend_list)(struct socket *, struct uio **, u_int, int);
+ int (*pru_socheckopt)(struct socket *, struct sockopt *);
+ int (*pru_preconnect)(struct socket *so);