FreeBSD kernel IPv4 code
in_pcb_var.h File Reference

Go to the source code of this file.

Data Structures

struct  inpcbport
 

Macros

#define V_in_pcbhashseed   VNET(in_pcbhashseed)
 

Functions

 VNET_DECLARE (uint32_t, in_pcbhashseed)
 
bool inp_smr_lock (struct inpcb *, const inp_lookup_t)
 
int in_pcb_lport (struct inpcb *, struct in_addr *, u_short *, struct ucred *, int)
 
int in_pcb_lport_dest (struct inpcb *inp, struct sockaddr *lsa, u_short *lportp, struct sockaddr *fsa, u_short fport, struct ucred *cred, int lookupflags)
 
struct inpcbin_pcblookup_local (struct inpcbinfo *, struct in_addr, u_short, int, struct ucred *)
 

Macro Definition Documentation

◆ V_in_pcbhashseed

#define V_in_pcbhashseed   VNET(in_pcbhashseed)

Definition at line 48 of file in_pcb_var.h.

Function Documentation

◆ in_pcb_lport()

int in_pcb_lport ( struct inpcb ,
struct in_addr ,
u_short *  ,
struct ucred *  ,
int   
)

◆ in_pcb_lport_dest()

int in_pcb_lport_dest ( struct inpcb inp,
struct sockaddr *  lsa,
u_short *  lportp,
struct sockaddr *  fsa,
u_short  fport,
struct ucred *  cred,
int  lookupflags 
)

◆ in_pcblookup_local()

struct inpcb * in_pcblookup_local ( struct inpcbinfo ,
struct in_addr  ,
u_short  ,
int  ,
struct ucred *   
)

◆ inp_smr_lock()

bool inp_smr_lock ( struct inpcb inp,
const  inp_lookup_t 
)

Definition at line 1578 of file in_pcb.c.

References in_pcbrele(), inpcb::inp_flags, INP_FREED, inp_lock(), inpcb::inp_pcbinfo, inpcb::inp_refcount, inp_trylock(), inp_unlock(), INPLOOKUP_RLOCKPCB, INPLOOKUP_WLOCKPCB, and inpcbinfo::ipi_smr.

Referenced by inp_next().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VNET_DECLARE()

VNET_DECLARE ( uint32_t  ,
in_pcbhashseed   
)