Lines Matching defs:so
139 extern int ip6_raw_ctloutput(struct socket *so, struct sockopt *sopt);
335 struct socket *so,
359 in6p = sotoin6pcb(so);
372 if ((error = ip6_setpktopts(control, &opt, NULL, so->so_proto->pr_protocol)) != 0)
382 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6) {
501 /* ip6_plen will be filled in ip6_output, so not fill it here. */
505 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6 ||
512 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6)
535 if (ipsec_bypass == 0 && ipsec_setsocket(m, so) != 0) {
552 set_packet_service_class(m, so, msc, PKT_SCF_IPV6);
592 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6) {
633 struct socket *so,
644 return(icmp6_ctloutput(so, sopt));
674 error = ip6_mrouter_get(so, sopt);
680 error = ip6_raw_ctloutput(so, sopt);
683 error = ip6_ctloutput(so, sopt);
712 error = ip6_mrouter_set(so, sopt);
718 error = ip6_raw_ctloutput(so, sopt);
726 error = inp_flush(sotoinpcb(so), optval);
730 error = ip6_ctloutput(so, sopt);
740 rip6_attach(struct socket *so, int proto, struct proc *p)
745 inp = sotoinpcb(so);
751 error = soreserve(so, rip_sendspace, rip_recvspace);
754 error = in_pcballoc(so, &ripcbinfo, p);
757 inp = (struct inpcb *)so->so_pcb;
771 rip6_detach(struct socket *so)
775 inp = sotoinpcb(so);
780 if (so == ip6_mrouter)
792 rip6_abort(struct socket *so)
794 soisdisconnected(so);
795 return rip6_detach(so);
799 rip6_disconnect(struct socket *so)
801 struct inpcb *inp = sotoinpcb(so);
803 if ((so->so_state & SS_ISCONNECTED) == 0)
806 return rip6_abort(so);
810 rip6_bind(struct socket *so, struct sockaddr *nam, __unused struct proc *p)
812 struct inpcb *inp = sotoinpcb(so);
849 rip6_connect(struct socket *so, struct sockaddr *nam, __unused struct proc *p)
851 struct inpcb *inp = sotoinpcb(so);
890 soisconnected(so);
895 rip6_shutdown(struct socket *so)
897 socantsendmore(so);
902 rip6_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
906 struct inpcb *inp = sotoinpcb(so);
911 if (so->so_state & SS_ISCONNECTED) {
936 return rip6_output(m, so, dst, control, 1);