Lines Matching defs:inpcb

88  * The pcb table mutex guarantees that all inpcb are consistent and
91 * both address consistency and inpcb lookup during protocol input.
127 struct inpcb {
129 TAILQ_ENTRY(inpcb) inp_queue; /* [t] inet PCB queue */
131 LIST_ENTRY(inpcb) inp_hash; /* [t] local and foreign hash */
132 LIST_ENTRY(inpcb) inp_lhash; /* [t] local port hash */
180 LIST_HEAD(inpcbhead, inpcb);
184 TAILQ_ENTRY(inpcb) inp_queue; /* [t] inet PCB queue */
185 /* keep fields above in sync with struct inpcb */
189 in_pcb_is_iterator(struct inpcb *inp)
196 TAILQ_HEAD(inpthead, inpcb) inpt_queue; /* [t] inet PCB queue */
263 #define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
304 void in_losing(struct inpcb *);
306 int in_pcbbind_locked(struct inpcb *, struct mbuf *, const void *,
308 int in_pcbbind(struct inpcb *, struct mbuf *, struct proc *);
309 int in_pcbaddrisavail(const struct inpcb *, struct sockaddr_in *, int,
311 int in_pcbconnect(struct inpcb *, struct mbuf *);
312 void in_pcbdetach(struct inpcb *);
314 in_pcbsolock_ref(struct inpcb *);
315 void in_pcbsounlock_rele(struct inpcb *, struct socket *);
316 struct inpcb *
317 in_pcbref(struct inpcb *);
318 void in_pcbunref(struct inpcb *);
319 void in_pcbdisconnect(struct inpcb *);
320 struct inpcb *
321 in_pcb_iterator(struct inpcbtable *, struct inpcb *,
323 void in_pcb_iterator_abort(struct inpcbtable *, struct inpcb *,
325 struct inpcb *
328 struct inpcb *
334 struct inpcb *
337 struct inpcb *
340 int in6_pcbaddrisavail_lock(const struct inpcb *, struct sockaddr_in6 *,
342 int in6_pcbaddrisavail(const struct inpcb *, struct sockaddr_in6 *, int,
344 int in6_pcbconnect(struct inpcb *, struct mbuf *);
345 void in6_setsockaddr(struct inpcb *, struct mbuf *);
346 void in6_setpeeraddr(struct inpcb *, struct mbuf *);
351 struct inpcb *
355 u_int, int, void (*)(struct inpcb *, int));
356 void in_pcbrehash(struct inpcb *);
357 void in_rtchange(struct inpcb *, int);
358 void in_setpeeraddr(struct inpcb *, struct mbuf *);
359 void in_setsockaddr(struct inpcb *, struct mbuf *);
364 int in_pcbselsrc(struct in_addr *, struct sockaddr_in *, struct inpcb *);
366 in_pcbrtentry(struct inpcb *);
370 in6_pcbrtentry(struct inpcb *);
373 void (*)(struct inpcb *, int));
374 int in6_selecthlim(const struct inpcb *);
375 int in_pcbset_rtableid(struct inpcb *, u_int);
376 void in_pcbset_laddr(struct inpcb *, const struct sockaddr *, u_int);
377 void in_pcbunset_faddr(struct inpcb *);
378 void in_pcbunset_laddr(struct inpcb *);