Lines Matching refs:in6p

1846 	struct inpcb *in6p = sotoinpcb(so);
1880 error = ip6_pcbopts(&in6p->in6p_outputopts,
1930 in6p->in6p_hops = optval;
1931 if ((in6p->inp_vflag &
1933 in6p->inp_ip_ttl = optval;
1939 in6p->inp_flags |= (bit); \
1941 in6p->inp_flags &= ~(bit); \
1945 in6p->inp_flags |= IN6P_RFC2292; \
1947 in6p->inp_flags |= (bit); \
1949 in6p->inp_flags &= ~(bit); \
1951 #define OPTBIT(bit) (in6p->inp_flags & (bit) ? 1 : 0)
1971 optp = &in6p->in6p_outputopts;
2040 if (in6p->inp_lport ||
2041 !IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr)) {
2047 in6p->inp_vflag &= ~INP_IPV4;
2049 in6p->inp_vflag |= INP_IPV4;
2076 optp = &in6p->in6p_outputopts;
2147 optp = &in6p->in6p_outputopts;
2167 error = ip6_setmoptions(in6p, sopt);
2178 in6p->inp_flags &= ~(INP_LOWPORT);
2179 in6p->inp_flags &= ~(INP_HIGHPORT);
2183 in6p->inp_flags &= ~(INP_LOWPORT);
2184 in6p->inp_flags |= INP_HIGHPORT;
2188 in6p->inp_flags &= ~(INP_HIGHPORT);
2189 in6p->inp_flags |= INP_LOWPORT;
2213 error = ipsec6_set_policy(in6p, optname, req,
2242 if (!(in6p->inp_vflag & INP_IPV6)) {
2253 error = inp_bindif(in6p, optval);
2258 if (!(in6p->inp_vflag & INP_IPV6)) {
2269 error = inp_nocellular(in6p, optval);
2327 optval = in6p->in6p_hops;
2353 flags = in6p->inp_flags;
2392 &in6p->in6p_faddr, &pmtu, NULL);
2444 error = ip6_getpcbopt(in6p->in6p_outputopts,
2452 error = ip6_getmoptions(in6p, sopt);
2473 error = ipsec6_get_policy(in6p, req, len, mp);
2496 if (in6p->inp_flags & INP_BOUND_IF)
2497 optval = in6p->inp_boundifp->if_index;
2503 optval = (in6p->inp_flags & INP_NO_IFT_CELLULAR)
2510 optval = (in6p->in6p_last_outifp != NULL) ?
2511 in6p->in6p_last_outifp->if_index : 0;
2533 struct inpcb *in6p = sotoinpcb(so);
2573 in6p->in6p_cksum = optval;
2580 optval = in6p->in6p_cksum;
3610 ip6_optlen(in6p)
3611 struct in6pcb *in6p;
3615 if (!in6p->in6p_outputopts)
3622 len += elen(in6p->in6p_outputopts->ip6po_hbh);
3623 if (in6p->in6p_outputopts->ip6po_rthdr)
3625 len += elen(in6p->in6p_outputopts->ip6po_dest1);
3626 len += elen(in6p->in6p_outputopts->ip6po_rthdr);
3627 len += elen(in6p->in6p_outputopts->ip6po_dest2);