Lines Matching refs:in6p

1471 	struct inpcb *in6p = sotoinpcb(so);
1493 INP_WLOCK(in6p);
1495 in6p->inp_flags2 |= INP_REUSEADDR;
1497 in6p->inp_flags2 &= ~INP_REUSEADDR;
1498 INP_WUNLOCK(in6p);
1502 INP_WLOCK(in6p);
1504 in6p->inp_flags2 |= INP_REUSEPORT;
1506 in6p->inp_flags2 &= ~INP_REUSEPORT;
1507 INP_WUNLOCK(in6p);
1511 INP_WLOCK(in6p);
1512 in6p->inp_inc.inc_fibnum = so->so_fibnum;
1513 INP_WUNLOCK(in6p);
1538 error = ip6_pcbopts(&in6p->in6p_outputopts,
1601 in6p->in6p_hops = optval;
1602 if ((in6p->inp_vflag &
1604 in6p->inp_ip_ttl = optval;
1609 INP_WLOCK(in6p); \
1611 in6p->inp_flags |= (bit); \
1613 in6p->inp_flags &= ~(bit); \
1614 INP_WUNLOCK(in6p); \
1618 INP_WLOCK(in6p); \
1619 in6p->inp_flags |= IN6P_RFC2292; \
1621 in6p->inp_flags |= (bit); \
1623 in6p->inp_flags &= ~(bit); \
1624 INP_WUNLOCK(in6p); \
1626 #define OPTBIT(bit) (in6p->inp_flags & (bit) ? 1 : 0)
1646 optp = &in6p->in6p_outputopts;
1720 if (in6p->inp_lport ||
1721 !IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr)) {
1727 in6p->inp_vflag &= ~INP_IPV4;
1729 in6p->inp_vflag |= INP_IPV4;
1763 optp = &in6p->in6p_outputopts;
1849 optp = &in6p->in6p_outputopts;
1869 error = ip6_setmoptions(in6p, sopt);
1878 INP_WLOCK(in6p);
1881 in6p->inp_flags &= ~(INP_LOWPORT);
1882 in6p->inp_flags &= ~(INP_HIGHPORT);
1886 in6p->inp_flags &= ~(INP_LOWPORT);
1887 in6p->inp_flags |= INP_HIGHPORT;
1891 in6p->inp_flags &= ~(INP_HIGHPORT);
1892 in6p->inp_flags |= INP_LOWPORT;
1899 INP_WUNLOCK(in6p);
1913 error = ipsec_set_policy(in6p, optname, req,
1976 optval = in6p->in6p_hops;
2006 flags = in6p->inp_flags;
2049 &in6p->in6p_faddr, &pmtu, NULL,
2102 error = ip6_getpcbopt(in6p->in6p_outputopts,
2110 error = ip6_getmoptions(in6p, sopt);
2135 error = ipsec_get_policy(in6p, req, len, mp);
2159 struct inpcb *in6p = sotoinpcb(so);
2199 in6p->in6p_cksum = optval;
2206 optval = in6p->in6p_cksum;
3067 ip6_optlen(struct inpcb *in6p)
3071 if (!in6p->in6p_outputopts)
3078 len += elen(in6p->in6p_outputopts->ip6po_hbh);
3079 if (in6p->in6p_outputopts->ip6po_rthdr)
3081 len += elen(in6p->in6p_outputopts->ip6po_dest1);
3082 len += elen(in6p->in6p_outputopts->ip6po_rthdr);
3083 len += elen(in6p->in6p_outputopts->ip6po_dest2);