Lines Matching defs:so
113 /* m_pullup() has freed the mbuf, so just return. */
202 struct socket *so;
254 so = inp->inp_socket;
255 mtx_enter(&so->so_rcv.sb_mtx);
256 if (sbappendaddr(so, &so->so_rcv, sin6tosa(&sin6), m, NULL) == 0) {
257 mtx_leave(&so->so_rcv.sb_mtx);
261 mtx_leave(&so->so_rcv.sb_mtx);
262 sorwakeup(so);
274 divert6_attach(struct socket *so, int proto, int wait)
278 if (so->so_pcb != NULL)
280 if ((so->so_state & SS_PRIV) == 0)
283 error = soreserve(so, atomic_load_int(&divert6_sendspace),
287 error = in_pcballoc(so, &divb6table, wait);
295 divert6_send(struct socket *so, struct mbuf *m, struct mbuf *addr,
298 struct inpcb *inp = sotoinpcb(so);
300 soassertlocked(so);