• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/bsd/netinet6/

Lines Matching refs:in6p

2077 	struct inpcb *in6p = sotoinpcb(so);
2107 error = ip6_pcbopts(&in6p->in6p_outputopts,
2156 in6p->in6p_hops = optval;
2157 if (in6p->inp_vflag &
2159 in6p->inp_ip_ttl =
2166 in6p->inp_flags |= (bit); \
2168 in6p->inp_flags &= ~(bit); \
2172 in6p->inp_flags |= IN6P_RFC2292; \
2174 in6p->inp_flags |= (bit); \
2176 in6p->inp_flags &= ~(bit); \
2179 #define OPTBIT(bit) (in6p->inp_flags & (bit) ? 1 : 0)
2198 optp = &in6p->in6p_outputopts;
2267 if (in6p->inp_lport ||
2269 &in6p->in6p_laddr)) {
2275 in6p->inp_vflag &= ~INP_IPV4;
2277 in6p->inp_vflag |= INP_IPV4;
2307 optp = &in6p->in6p_outputopts;
2377 optp = &in6p->in6p_outputopts;
2396 error = ip6_setmoptions(in6p, sopt);
2407 in6p->inp_flags &= ~(INP_LOWPORT);
2408 in6p->inp_flags &= ~(INP_HIGHPORT);
2412 in6p->inp_flags &= ~(INP_LOWPORT);
2413 in6p->inp_flags |= INP_HIGHPORT;
2417 in6p->inp_flags &= ~(INP_HIGHPORT);
2418 in6p->inp_flags |= INP_LOWPORT;
2439 error = ipsec6_set_policy(in6p, optname, req,
2465 if (!(in6p->inp_vflag & INP_IPV6)) {
2476 error = inp_bindif(in6p, optval, NULL);
2481 if (!(in6p->inp_vflag & INP_IPV6)) {
2493 if (!optval && INP_NO_CELLULAR(in6p)) {
2556 optval = in6p->in6p_hops;
2581 flags = in6p->inp_flags;
2619 &in6p->in6p_faddr, &pmtu, NULL);
2672 error = ip6_getpcbopt(in6p->in6p_outputopts,
2680 error = ip6_getmoptions(in6p, sopt);
2700 if (in6p->inp_flags & INP_BOUND_IF)
2701 optval = in6p->inp_boundifp->if_index;
2707 optval = INP_NO_CELLULAR(in6p) ? 1 : 0;
2713 optval = (in6p->in6p_last_outifp != NULL) ?
2714 in6p->in6p_last_outifp->if_index : 0;
2736 struct inpcb *in6p = sotoinpcb(so);
2774 in6p->in6p_cksum = optval;
2782 optval = in6p->in6p_cksum;
3875 ip6_optlen(struct in6pcb *in6p)
3879 if (!in6p->in6p_outputopts)
3887 len += elen(in6p->in6p_outputopts->ip6po_hbh);
3888 if (in6p->in6p_outputopts->ip6po_rthdr) {
3890 len += elen(in6p->in6p_outputopts->ip6po_dest1);
3892 len += elen(in6p->in6p_outputopts->ip6po_rthdr);
3893 len += elen(in6p->in6p_outputopts->ip6po_dest2);