Lines Matching defs:so

85 extern int	_ip_mrouter_get(struct socket *so, struct sockopt *sopt);
86 extern int _ip_mrouter_set(struct socket *so, struct sockopt *sopt);
97 _ip_mrouter_set(__unused struct socket *so,
107 _ip_mrouter_get(__unused struct socket *so,
179 ip_rsvp_vif_init(so, sopt)
180 struct socket *so;
187 ip_rsvp_vif_done(so, sopt)
188 struct socket *so;
195 ip_rsvp_force_done(so)
196 struct socket *so;
249 * 'Interfaces' associated with decapsulator (so we can tell
293 static int X_ip_mrouter_get(struct socket *so, struct sockopt *m);
294 static int X_ip_mrouter_set(struct socket *so, struct sockopt *m);
396 X_ip_mrouter_set(struct socket *so, struct sockopt *sopt)
403 if (so != ip_mrouter && sopt->sopt_name != MRT_INIT)
413 error = ip_mrouter_init(so, optval);
468 X_ip_mrouter_get(__unused struct socket *so, struct sockopt *sopt)
559 ip_mrouter_init(struct socket *so, int vers)
563 so->so_type, so->so_proto->pr_protocol);
565 if (so->so_type != SOCK_RAW ||
566 so->so_proto->pr_protocol != IPPROTO_IGMP) return EOPNOTSUPP;
573 ip_mrouter = so;
937 /* no upcall, so make a new entry */
1139 /* Entry exists, so forward if necessary */
1166 * Allocate mbufs early so that we don't do extra work if we are
1167 * just going to fail anyway. Make sure to pullup the header so
1195 /* no upcall, so make a new entry */
1346 * input, they shouldn't get counted on output, so statistics keeping is
1489 * so that ip_output() only scribbles on the copy.
1512 * new mbuf so we can modify it. Try to fill the new
1676 /* finite queue length, so queue pkts and process queue */
1743 /* if so,
1927 ip_rsvp_vif_init(struct socket *so, struct sockopt *sopt)
1933 so->so_type, so->so_proto->pr_protocol);
1935 if (so->so_type != SOCK_RAW || so->so_proto->pr_protocol != IPPROTO_RSVP)
1956 viftable[i].v_rsvpd = so;
1969 ip_rsvp_vif_done(struct socket *so, struct sockopt *sopt)
1975 so->so_type, so->so_proto->pr_protocol);
1977 if (so->so_type != SOCK_RAW ||
1978 so->so_proto->pr_protocol != IPPROTO_RSVP)
1991 printf("ip_rsvp_vif_done: v_rsvpd = %p so = %p\n",
1992 viftable[i].v_rsvpd, so);
2008 ip_rsvp_force_done(struct socket *so)
2013 if (so->so_type != SOCK_RAW || so->so_proto->pr_protocol != IPPROTO_RSVP)
2020 if (viftable[vifi].v_rsvpd == so) {