Lines Matching defs:so
149 * with raw_usrreq.c, since its functionality is so restricted. XXX
152 rts_abort(struct socket *so)
156 error = raw_usrreqs.pru_abort(so);
163 rts_attach(struct socket *so, int proto, __unused struct proc *p)
168 if (sotorawcb(so) != 0)
182 so->so_pcb = (caddr_t)rp;
183 error = raw_attach(so, proto); /* don't use raw_usrreqs.pru_attach, it checks for SS_PRIV */
184 rp = sotorawcb(so);
187 so->so_pcb = NULL;
188 so->so_flags |= SOF_PCBCLEARING;
210 soisconnected(so);
211 so->so_options |= SO_USELOOPBACK;
216 rts_bind(struct socket *so, struct sockaddr *nam, struct proc *p)
219 error = raw_usrreqs.pru_bind(so, nam, p); /* xxx just EINVAL */
224 rts_connect(struct socket *so, struct sockaddr *nam, struct proc *p)
227 error = raw_usrreqs.pru_connect(so, nam, p); /* XXX just EINVAL */
235 rts_detach(struct socket *so)
237 struct rawcb *rp = sotorawcb(so);
257 error = raw_usrreqs.pru_detach(so);
262 rts_disconnect(struct socket *so)
265 error = raw_usrreqs.pru_disconnect(so);
272 rts_peeraddr(struct socket *so, struct sockaddr **nam)
275 error = raw_usrreqs.pru_peeraddr(so, nam);
283 rts_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
287 error = raw_usrreqs.pru_send(so, flags, m, nam, control, p);
294 rts_shutdown(struct socket *so)
297 error = raw_usrreqs.pru_shutdown(so);
302 rts_sockaddr(struct socket *so, struct sockaddr **nam)
305 error = raw_usrreqs.pru_sockaddr(so, nam);
319 route_output(struct mbuf *m, struct socket *so)
344 socket_unlock(so, 0);
366 * all RTM_GETs to be silent in the future, so this is private for now.
369 if ((so->so_options & SO_USELOOPBACK) == 0)
379 if (rtm->rtm_type != RTM_GET && (so->so_state & SS_PRIV) == 0) {
503 * so many places (roughly 40 in our source), adding
519 * find an interface, so this problem should be
565 * ifa from changing (e.g. in_ifinit), so it is safe
692 socket_lock(so, 0); /* relock the socket now */
698 if ((so->so_options & SO_USELOOPBACK) == 0) {
705 /* There is another listener, so construct message */
706 rp = sotorawcb(so);
719 if (sbappendaddr(&so->so_rcv, &route_src, m, (struct mbuf*)0, &error) != 0) {
720 sorwakeup(so);
731 socket_unlock(so, 0);
733 socket_lock(so, 0);
973 * Do a little sanity checking so as to avoid bad memory references.
1292 * from changing contents, so no need to hold its
1535 * changing contents, so no need to hold the ifa lock.
1664 * changing contents, so no need to hold the ifa lock.
1758 * address from changing contents, so no need