Lines Matching refs:inpcb

87 #define	in6pcb		inpcb	/* for KAME src sync over BSD*'s */
99 LIST_HEAD(inpcbhead, inpcb);
132 struct inpcb *infc_inp;
144 struct inpcb {
145 LIST_ENTRY(inpcb) inp_hash; /* hash list */
150 LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */
155 LIST_ENTRY(inpcb) inp_portlist; /* list for this PCB's local port */
211 decl_lck_mtx_data( ,inpcb_mtx); /* inpcb per-socket mutex */
239 * This is a copy of the inpcb as it shipped in Panther. This structure
240 * is filled out in a copy function. This allows the inpcb to change
272 struct inpcb {
274 _INPCB_LIST_ENTRY(inpcb) inp_hash; /* hash list */
279 _INPCB_LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */
285 _INPCB_LIST_ENTRY(inpcb) inp_portlist; /* list for this PCB's local port */
349 struct inpcb xi_inp;
455 * These defines are for use with the inpcb.
628 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
659 extern void in_losing(struct inpcb *);
660 extern void in_rtchange(struct inpcb *, int);
662 extern int in_pcbbind(struct inpcb *, struct sockaddr *, struct proc *);
663 extern int in_pcbconnect(struct inpcb *, struct sockaddr *, struct proc *,
665 extern void in_pcbdetach(struct inpcb *);
666 extern void in_pcbdispose (struct inpcb *);
667 extern void in_pcbdisconnect(struct inpcb *);
668 extern int in_pcbinshash(struct inpcb *, int);
669 extern int in_pcbladdr(struct inpcb *, struct sockaddr *,
671 extern struct inpcb *in_pcblookup_local(struct inpcbinfo *, struct in_addr,
673 extern struct inpcb *in_pcblookup_local_and_cleanup(struct inpcbinfo *,
675 extern struct inpcb *in_pcblookup_hash(struct inpcbinfo *, struct in_addr,
680 void (*)(struct inpcb *, int));
681 extern void in_pcbrehash(struct inpcb *);
684 extern int in_pcb_checkstate(struct inpcb *pcb, int mode, int locked);
686 extern void in_pcbremlists(struct inpcb *inp);
687 extern void inpcb_to_compat(struct inpcb *inp,
690 extern void inpcb_to_xinpcb64(struct inpcb *inp,
699 extern void inp_route_copyout(struct inpcb *, struct route *);
700 extern void inp_route_copyin(struct inpcb *, struct route *);
701 extern int inp_bindif(struct inpcb *, unsigned int);
702 extern int inp_nocellular(struct inpcb *, unsigned int);
703 extern u_int32_t inp_calc_flowhash(struct inpcb *);
705 extern int inp_fc_addinp(struct inpcb *);
708 extern void inp_fc_feedback(struct inpcb *);
709 extern void inp_reset_fc_state(struct inpcb *);
710 extern int inp_set_fc_state(struct inpcb *, int advcode);
711 extern void inp_fc_unthrottle_tcp(struct inpcb *);
712 extern int inp_flush(struct inpcb *, int);