Lines Matching defs:so
106 * written in the sin_port (ipfw does not allow a rule #0, so sin_port=0
311 div_output(struct socket *so, struct mbuf *m, struct sockaddr_in *sin,
325 M_SETFIB(m, so->so_fibnum);
358 * The name is user supplied data so don't trust its size
373 inp = sotoinpcb(so);
434 * held so we can use them in ip_output() without
450 ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0)
482 mac_socket_create_mbuf(so, m);
487 netisr_queue_src(NETISR_IP, (uintptr_t)so, m);
491 netisr_queue_src(NETISR_IPV6, (uintptr_t)so, m);
508 div_attach(struct socket *so, int proto, struct thread *td)
513 inp = sotoinpcb(so);
520 error = soreserve(so, div_sendspace, div_recvspace);
524 error = in_pcballoc(so, &V_divcbinfo);
529 inp = (struct inpcb *)so->so_pcb;
539 div_detach(struct socket *so)
543 inp = sotoinpcb(so);
553 div_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
558 inp = sotoinpcb(so);
581 div_shutdown(struct socket *so)
585 inp = sotoinpcb(so);
588 socantsendmore(so);
594 div_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
607 return div_output(so, m, (struct sockaddr_in *)nam, control);