Searched refs:in6p (Results 1 - 10 of 10) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet6/
H A Dudp6_output.c167 udp6_output(in6p, m, addr6, control, p)
168 struct in6pcb *in6p;
194 flowadv = (in6p->inp_socket->so_state & SS_ISCONNECTED) ? 1 : 0;
196 if (flowadv && INP_WAIT_FOR_IF_FEEDBACK(in6p)) {
201 if (in6p->inp_flags & INP_BOUND_IF) {
202 ip6oa.ip6oa_boundif = in6p->inp_boundifp->if_index;
205 if (in6p->inp_flags & INP_NO_IFT_CELLULAR)
215 optp = in6p->in6p_outputopts;
234 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr)) {
248 if ((in6p
[all...]
H A Dudp6_usrreq.c210 register struct inpcb *in6p; local
328 LIST_FOREACH(in6p, &udb, inp_list) {
330 if ((in6p->inp_vflag & INP_IPV6) == 0)
335 !(in6p->in6p_flags & IN6P_RECV_ANYIF))
338 if (in_pcb_checkstate(in6p, WNT_ACQUIRE, 0) == WNT_STOPUSING)
341 udp_lock(in6p->in6p_socket, 1, 0);
343 if (in_pcb_checkstate(in6p, WNT_RELEASE, 1) == WNT_STOPUSING) {
344 udp_unlock(in6p->in6p_socket, 1, 0);
347 if (in6p->in6p_lport != uh->uh_dport) {
348 udp_unlock(in6p
[all...]
H A Draw_ip6.c156 register struct inpcb *in6p; local
170 LIST_FOREACH(in6p, &ripcb, inp_list) {
171 if ((in6p->in6p_vflag & INP_IPV6) == 0)
173 if (in6p->in6p_ip6_nxt &&
174 in6p->in6p_ip6_nxt != proto)
176 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) &&
177 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
179 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) &&
180 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
182 if (proto == IPPROTO_ICMPV6 || in6p
342 struct inpcb *in6p; local
[all...]
H A Dip6_output.c1846 struct inpcb *in6p = sotoinpcb(so); local
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
2533 struct inpcb *in6p = sotoinpcb(so); local
[all...]
H A Din6_src.c1157 struct in6pcb *in6p,
1160 if (in6p && in6p->in6p_hops >= 0) {
1161 return(in6p->in6p_hops);
1670 struct in6pcb *in6p,
1697 if (in6p != NULL && IN6_IS_ADDR_MULTICAST(in6) &&
1698 in6p->in6p_moptions != NULL) {
1699 IM6O_LOCK(in6p->in6p_moptions);
1701 in6p->in6p_moptions->im6o_multicast_ifp;
1702 IM6O_UNLOCK(in6p
1156 in6_selecthlim( struct in6pcb *in6p, struct ifnet *ifp) argument
1667 in6_embedscope( struct in6_addr *in6, const struct sockaddr_in6 *sin6, struct in6pcb *in6p, struct ifnet **ifpp, struct ip6_pktopts *opt) argument
[all...]
H A Dipsec.c1592 ipsec6_set_policy(in6p, optname, request, len, priv)
1593 struct in6pcb *in6p;
1606 if (in6p == NULL || request == NULL)
1621 if (in6p->in6p_sp == NULL) {
1622 error = ipsec_init_policy(in6p->inp_socket, &in6p->in6p_sp);
1630 pcb_sp = &in6p->in6p_sp->sp_in;
1633 pcb_sp = &in6p->in6p_sp->sp_out;
1649 ipsec6_get_policy(in6p, request, len, mp)
1650 struct in6pcb *in6p;
[all...]
H A Dip6_input.c1558 ip6_savecontrol(struct inpcb *in6p, struct mbuf *m, struct mbuf **mp) argument
1565 np = ip6_savecontrol_v4(in6p, m, mp, &v4only);
1573 if ((in6p->inp_flags & IN6P_TCLASS) != 0) {
1594 if ((in6p->inp_flags & IN6P_HOPOPTS) != 0) {
1637 IS2292(in6p, IPV6_2292HOPOPTS, IPV6_HOPOPTS),
1649 if ((in6p->inp_flags & (IN6P_RTHDR | IN6P_DSTOPTS)) != 0) {
1710 if (!(in6p->inp_flags & IN6P_DSTOPTS))
1714 IS2292(in6p,
1725 if (!in6p->inp_flags & IN6P_RTHDR)
1729 IS2292(in6p, IPV6_2292RTHD
1777 ip6_notify_pmtu(struct inpcb *in6p, struct sockaddr_in6 *dst, u_int32_t *mtu) argument
[all...]
H A Dicmp6.c2059 struct in6pcb *in6p; local
2089 LIST_FOREACH(in6p, &ripcb, inp_list)
2091 if ((in6p->inp_vflag & INP_IPV6) == 0)
2093 if (in6p->in6p_ip6_nxt != IPPROTO_ICMPV6)
2095 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) &&
2096 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
2098 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) &&
2099 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
2101 if (in6p->in6p_icmp6filt
2103 in6p
[all...]
H A Din6_pcb.c982 struct inpcb *in6p)
987 if ((rt = in6p->in6p_route.ro_rt) != NULL) {
988 in6p->in6p_route.ro_rt = NULL;
992 (struct sockaddr *)&in6p->in6p_route.ro_dst;
981 in6_losing( struct inpcb *in6p) argument
H A Din6_mcast.c1864 in6p_lookup_mcast_ifp(const struct inpcb *in6p, argument
1871 VERIFY(in6p == NULL || (in6p->inp_vflag & INP_IPV6));
1876 if (in6p != NULL && (in6p->inp_flags & INP_BOUND_IF))
1877 ifscope = in6p->inp_boundifp->if_index;

Completed in 161 milliseconds