Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_pcb.h
Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Lines | |||||
* INPCBLBGROUP_SIZMAX (256) times. The inpcbs are stored in il_inp which | * INPCBLBGROUP_SIZMAX (256) times. The inpcbs are stored in il_inp which | ||||
* is dynamically resized as processes bind/unbind to that specific group. | * is dynamically resized as processes bind/unbind to that specific group. | ||||
*/ | */ | ||||
struct inpcblbgroup { | struct inpcblbgroup { | ||||
CK_LIST_ENTRY(inpcblbgroup) il_list; | CK_LIST_ENTRY(inpcblbgroup) il_list; | ||||
struct epoch_context il_epoch_ctx; | struct epoch_context il_epoch_ctx; | ||||
uint16_t il_lport; /* (c) */ | uint16_t il_lport; /* (c) */ | ||||
u_char il_vflag; /* (c) */ | u_char il_vflag; /* (c) */ | ||||
u_char il_pad; | u_int8_t il_numa_domain; | ||||
bz: In general I'd prefer it spelt uint8_t in networking, also matches what's used in the mbuf… | |||||
Done Inline ActionsI'm guilty of determining convention by looking at the line above :) gallatin: I'm guilty of determining convention by looking at the line above :) | |||||
uint32_t il_pad2; | uint32_t il_pad2; | ||||
union in_dependaddr il_dependladdr; /* (c) */ | union in_dependaddr il_dependladdr; /* (c) */ | ||||
#define il_laddr il_dependladdr.id46_addr.ia46_addr4 | #define il_laddr il_dependladdr.id46_addr.ia46_addr4 | ||||
#define il6_laddr il_dependladdr.id6_addr | #define il6_laddr il_dependladdr.id6_addr | ||||
uint32_t il_inpsiz; /* max count in il_inp[] (h) */ | uint32_t il_inpsiz; /* max count in il_inp[] (h) */ | ||||
uint32_t il_inpcnt; /* cur count in il_inp[] (h) */ | uint32_t il_inpcnt; /* cur count in il_inp[] (h) */ | ||||
struct inpcb *il_inp[]; /* (h) */ | struct inpcb *il_inp[]; /* (h) */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | |||||
void in_pcbdetach(struct inpcb *); | void in_pcbdetach(struct inpcb *); | ||||
void in_pcbdisconnect(struct inpcb *); | void in_pcbdisconnect(struct inpcb *); | ||||
void in_pcbdrop(struct inpcb *); | void in_pcbdrop(struct inpcb *); | ||||
void in_pcbfree(struct inpcb *); | void in_pcbfree(struct inpcb *); | ||||
int in_pcbinshash(struct inpcb *); | int in_pcbinshash(struct inpcb *); | ||||
int in_pcbinshash_mbuf(struct inpcb *, struct mbuf *); | int in_pcbinshash_mbuf(struct inpcb *, struct mbuf *); | ||||
int in_pcbladdr(struct inpcb *, struct in_addr *, struct in_addr *, | int in_pcbladdr(struct inpcb *, struct in_addr *, struct in_addr *, | ||||
struct ucred *); | struct ucred *); | ||||
int in_pcblbgroup_numa(struct inpcb *, int arg); | |||||
struct inpcb * | struct inpcb * | ||||
in_pcblookup_local(struct inpcbinfo *, | in_pcblookup_local(struct inpcbinfo *, | ||||
struct in_addr, u_short, int, struct ucred *); | struct in_addr, u_short, int, struct ucred *); | ||||
struct inpcb * | struct inpcb * | ||||
in_pcblookup(struct inpcbinfo *, struct in_addr, u_int, | in_pcblookup(struct inpcbinfo *, struct in_addr, u_int, | ||||
struct in_addr, u_int, int, struct ifnet *); | struct in_addr, u_int, int, struct ifnet *); | ||||
struct inpcb * | struct inpcb * | ||||
in_pcblookup_mbuf(struct inpcbinfo *, struct in_addr, u_int, | in_pcblookup_mbuf(struct inpcbinfo *, struct in_addr, u_int, | ||||
Show All 34 Lines |
In general I'd prefer it spelt uint8_t in networking, also matches what's used in the mbuf pkthdr if I am not misremembering.