Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_pcb_var.h
Show All 38 Lines | |||||
#ifndef _NETINET_IN_PCB_VAR_H_ | #ifndef _NETINET_IN_PCB_VAR_H_ | ||||
#define _NETINET_IN_PCB_VAR_H_ | #define _NETINET_IN_PCB_VAR_H_ | ||||
/* | /* | ||||
* Definitions shared between netinet/in_pcb.c and netinet6/in6_pcb.c | * Definitions shared between netinet/in_pcb.c and netinet6/in6_pcb.c | ||||
*/ | */ | ||||
bool inp_smr_lock(struct inpcb *, const inp_lookup_t); | |||||
int in_pcb_lport(struct inpcb *, struct in_addr *, u_short *, | int in_pcb_lport(struct inpcb *, struct in_addr *, u_short *, | ||||
struct ucred *, int); | struct ucred *, int); | ||||
int in_pcb_lport_dest(struct inpcb *inp, struct sockaddr *lsa, | int in_pcb_lport_dest(struct inpcb *inp, struct sockaddr *lsa, | ||||
u_short *lportp, struct sockaddr *fsa, u_short fport, | u_short *lportp, struct sockaddr *fsa, u_short fport, | ||||
struct ucred *cred, int lookupflags); | struct ucred *cred, int lookupflags); | ||||
struct inpcb * in_pcblookup_local(struct inpcbinfo *, struct in_addr, u_short, | struct inpcb * in_pcblookup_local(struct inpcbinfo *, struct in_addr, u_short, | ||||
int, struct ucred *); | int, struct ucred *); | ||||
struct inpcbport { | |||||
struct inpcbhead phd_pcblist; | |||||
CK_LIST_ENTRY(inpcbport) phd_hash; | |||||
u_short phd_port; | |||||
}; | |||||
#endif /* !_NETINET_IN_PCB_VAR_H_ */ | #endif /* !_NETINET_IN_PCB_VAR_H_ */ |