Lines Matching defs:so

136 static void		udp6_detach(struct socket *so);
142 struct socket *so;
204 so = inp->inp_socket;
205 SOCKBUF_LOCK(&so->so_rcv);
206 if (sbappendaddr_locked(&so->so_rcv, (struct sockaddr *)&fromsa[0], n,
208 soroverflow_locked(so);
214 sorwakeup_locked(so);
269 * here. We need udphdr for IPsec processing so we do that
413 * dport 0 was rejected earlier so this is OK even if
660 udp6_send(struct socket *so, int flags_arg, struct mbuf *m,
705 * applications do not behave as it should, so we need a
720 inp = sotoinpcb(so);
730 * We check the inp fields before actually locking the inp, so
765 return (udp_send(so, flags_arg | PRUS_IPV6, m,
830 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
964 udp6_abort(struct socket *so)
969 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
970 inp = sotoinpcb(so);
977 udp_abort(so);
986 soisdisconnected(so);
992 udp6_attach(struct socket *so, int proto, struct thread *td)
999 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
1000 inp = sotoinpcb(so);
1003 if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) {
1004 error = soreserve(so, udp_sendspace, udp_recvspace);
1008 error = in_pcballoc(so, pcbinfo);
1011 inp = (struct inpcb *)so->so_pcb;
1027 udp6_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
1035 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
1036 inp = sotoinpcb(so);
1079 udp6_close(struct socket *so)
1084 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
1085 inp = sotoinpcb(so);
1092 (void)udp_disconnect(so);
1100 soisdisconnected(so);
1106 udp6_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
1115 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
1116 inp = sotoinpcb(so);
1163 soisconnected(so);
1196 soisconnected(so);
1206 udp6_detach(struct socket *so)
1210 inp = sotoinpcb(so);
1218 udp6_disconnect(struct socket *so)
1223 pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
1224 inp = sotoinpcb(so);
1231 (void)udp_disconnect(so);
1244 SOCK_LOCK(so);
1245 so->so_state &= ~SS_ISCONNECTED; /* XXX */
1246 SOCK_UNLOCK(so);