Lines Matching refs:in6p
130 register struct inpcb *in6p;
149 LIST_FOREACH(in6p, &ripcb, inp_list) {
150 if ((in6p->in6p_vflag & INP_IPV6) == 0)
152 if (in6p->in6p_ip6_nxt &&
153 in6p->in6p_ip6_nxt != proto)
155 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) &&
156 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
158 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) &&
159 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
161 if (in6p->in6p_cksum != -1) {
197 last = in6p;
295 struct inpcb *in6p;
303 in6p = sotoin6pcb(so);
314 optp = in6p->in6p_outputopts;
357 in6p->in6p_moptions &&
358 in6p->in6p_moptions->im6o_multicast_ifp) {
359 oifp = in6p->in6p_moptions->im6o_multicast_ifp;
381 in6p->in6p_moptions,
382 &in6p->in6p_route,
383 &in6p->in6p_laddr,
390 if (in6p->in6p_route.ro_rt)
391 oifp = ifindex2ifnet[in6p->in6p_route.ro_rt->rt_ifp->if_index];
394 (in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK);
398 ip6->ip6_nxt = in6p->in6p_ip6_nxt;
399 ip6->ip6_hlim = in6_selecthlim(in6p, oifp);
402 in6p->in6p_cksum != -1) {
411 off = in6p->in6p_cksum;
437 if (in6p->in6p_route.ro_rt && in6p->in6p_route.ro_rt->generation_id != route_generation) {
438 rtfree(in6p->in6p_route.ro_rt);
439 in6p->in6p_route.ro_rt = (struct rtentry *)0;
442 error = ip6_output(m, optp, &in6p->in6p_route, 0,
443 in6p->in6p_moptions, &oifp, 0);