Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/protosw.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define PR_ATOMIC 0x01 /* exchange atomic messages only */ | #define PR_ATOMIC 0x01 /* exchange atomic messages only */ | ||||
#define PR_ADDR 0x02 /* addresses given with messages */ | #define PR_ADDR 0x02 /* addresses given with messages */ | ||||
#define PR_CONNREQUIRED 0x04 /* connection required by protocol */ | #define PR_CONNREQUIRED 0x04 /* connection required by protocol */ | ||||
#define PR_WANTRCVD 0x08 /* want PRU_RCVD calls */ | #define PR_WANTRCVD 0x08 /* want PRU_RCVD calls */ | ||||
#define PR_RIGHTS 0x10 /* passes capabilities */ | #define PR_RIGHTS 0x10 /* passes capabilities */ | ||||
#define PR_IMPLOPCL 0x20 /* implied open/close */ | #define PR_IMPLOPCL 0x20 /* implied open/close */ | ||||
#define PR_LASTHDR 0x40 /* enforce ipsec policy; last header */ | #define PR_LASTHDR 0x40 /* enforce ipsec policy; last header */ | ||||
#define PR_CAPATTACH 0x80 /* socket can attach in cap mode */ | |||||
/* | /* | ||||
* In earlier BSD network stacks, a single pr_usrreq() function pointer was | * In earlier BSD network stacks, a single pr_usrreq() function pointer was | ||||
* invoked with an operation number indicating what operation was desired. | * invoked with an operation number indicating what operation was desired. | ||||
* We now provide individual function pointers which protocols can implement, | * We now provide individual function pointers which protocols can implement, | ||||
* which offers a number of benefits (such as type checking for arguments). | * which offers a number of benefits (such as type checking for arguments). | ||||
* These older constants are still present in order to support TCP debugging. | * These older constants are still present in order to support TCP debugging. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
struct ucred; | struct ucred; | ||||
struct uio; | struct uio; | ||||
/* | /* | ||||
* If the ordering here looks odd, that's because it's alphabetical. These | * If the ordering here looks odd, that's because it's alphabetical. These | ||||
* should eventually be merged back into struct protosw. | * should eventually be merged back into struct protosw. | ||||
* | * | ||||
* Some fields initialized to defaults if they are NULL. | * Some fields initialized to defaults if they are NULL. | ||||
* See uipc_domain.c:net_init_domain() | |||||
*/ | */ | ||||
struct pr_usrreqs { | struct pr_usrreqs { | ||||
void (*pru_abort)(struct socket *so); | void (*pru_abort)(struct socket *so); | ||||
int (*pru_accept)(struct socket *so, struct sockaddr **nam); | int (*pru_accept)(struct socket *so, struct sockaddr **nam); | ||||
int (*pru_attach)(struct socket *so, int proto, struct thread *td); | int (*pru_attach)(struct socket *so, int proto, struct thread *td); | ||||
int (*pru_bind)(struct socket *so, struct sockaddr *nam, | int (*pru_bind)(struct socket *so, struct sockaddr *nam, | ||||
struct thread *td); | struct thread *td); | ||||
int (*pru_connect)(struct socket *so, struct sockaddr *nam, | int (*pru_connect)(struct socket *so, struct sockaddr *nam, | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |