Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_pcb.h
Show First 20 Lines • Show All 755 Lines • ▼ Show 20 Lines | |||||
#define INP_2PCP_MASK (INP_2PCP_BIT0 | INP_2PCP_BIT1 | INP_2PCP_BIT2) | #define INP_2PCP_MASK (INP_2PCP_BIT0 | INP_2PCP_BIT1 | INP_2PCP_BIT2) | ||||
#define INP_2PCP_SHIFT 18 /* shift PCP field in/out of inp_flags2 */ | #define INP_2PCP_SHIFT 18 /* shift PCP field in/out of inp_flags2 */ | ||||
/* | /* | ||||
* Flags passed to in_pcblookup*() functions. | * Flags passed to in_pcblookup*() functions. | ||||
*/ | */ | ||||
#define INPLOOKUP_WILDCARD 0x00000001 /* Allow wildcard sockets. */ | #define INPLOOKUP_WILDCARD 0x00000001 /* Allow wildcard sockets. */ | ||||
#define INPLOOKUP_RLOCKPCB 0x00000002 /* Return inpcb read-locked. */ | #define INPLOOKUP_RLOCKPCB 0x00000002 /* Return inpcb read-locked. */ | ||||
#define INPLOOKUP_WLOCKPCB 0x00000004 /* Return inpcb write-locked. */ | #define INPLOOKUP_WLOCKPCB 0x00000004 /* Return inpcb write-locked. */ | ||||
#define INPLOOKUP_RLOCKLISTEN 0x00000008 /* Rlock if listening, W if !.*/ | |||||
#define INPLOOKUP_MASK (INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB | \ | #define INPLOOKUP_MASK (INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB | \ | ||||
INPLOOKUP_WLOCKPCB) | INPLOOKUP_WLOCKPCB | INPLOOKUP_RLOCKLISTEN) | ||||
#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb) | #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb) | ||||
#define INP_SOCKAF(so) so->so_proto->pr_domain->dom_family | #define INP_SOCKAF(so) so->so_proto->pr_domain->dom_family | ||||
#define INP_CHECK_SOCKAF(so, af) (INP_SOCKAF(so) == af) | #define INP_CHECK_SOCKAF(so, af) (INP_SOCKAF(so) == af) | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |