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

/freebsd-10.3-release/sys/netinet6/
H A Draw_ip6.c164 register struct inpcb *in6p; local
182 LIST_FOREACH(in6p, &V_ripcb, inp_list) {
184 if ((in6p->inp_vflag & INP_IPV6) == 0)
186 if (in6p->inp_ip_p &&
187 in6p->inp_ip_p != proto)
189 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) &&
190 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
192 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) &&
193 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
195 if (jailed_without_vnet(in6p
406 struct inpcb *in6p; local
[all...]
H A Dip6_output.c1291 struct inpcb *in6p = sotoinpcb(so); local
1313 INP_WLOCK(in6p);
1315 in6p->inp_flags2 |= INP_REUSEADDR;
1317 in6p->inp_flags2 &= ~INP_REUSEADDR;
1318 INP_WUNLOCK(in6p);
1322 INP_WLOCK(in6p);
1324 in6p->inp_flags2 |= INP_REUSEPORT;
1326 in6p->inp_flags2 &= ~INP_REUSEPORT;
1327 INP_WUNLOCK(in6p);
1331 INP_WLOCK(in6p);
1979 struct inpcb *in6p = sotoinpcb(so); local
2883 ip6_optlen(struct inpcb *in6p) argument
[all...]
H A Din6_src.c884 in6_selecthlim(struct inpcb *in6p, struct ifnet *ifp) argument
887 if (in6p && in6p->in6p_hops >= 0)
888 return (in6p->in6p_hops);
891 else if (in6p && !IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr)) {
898 ro6.ro_dst.sin6_addr = in6p->in6p_faddr;
899 in6_rtalloc(&ro6, in6p->inp_inc.inc_fibnum);
H A Din6_pcb.c767 struct inpcb *in6p; local
772 LIST_FOREACH(in6p, pcbinfo->ipi_listhead, inp_list) {
773 INP_WLOCK(in6p);
774 im6o = in6p->in6p_moptions;
775 if ((in6p->inp_vflag & INP_IPV6) && im6o != NULL) {
800 INP_WUNLOCK(in6p);
812 in6_losing(struct inpcb *in6p) argument
H A Dip6_input.c1412 ip6_savecontrol(struct inpcb *in6p, struct mbuf *m, struct mbuf **mp) argument
1417 mp = ip6_savecontrol_v4(in6p, m, mp, &v4only);
1428 if ((in6p->inp_flags & IN6P_HOPOPTS) != 0) {
1470 IS2292(in6p, IPV6_2292HOPOPTS, IPV6_HOPOPTS),
1480 if ((in6p->inp_flags & (IN6P_RTHDR | IN6P_DSTOPTS)) != 0) {
1541 if (!(in6p->inp_flags & IN6P_DSTOPTS))
1545 IS2292(in6p,
1552 if (!(in6p->inp_flags & IN6P_RTHDR))
1556 IS2292(in6p, IPV6_2292RTHDR, IPV6_RTHDR),
H A Dicmp6.c1970 struct inpcb *in6p; local
2001 LIST_FOREACH(in6p, &V_ripcb, inp_list) {
2002 if ((in6p->inp_vflag & INP_IPV6) == 0)
2004 if (in6p->inp_ip_p != IPPROTO_ICMPV6)
2006 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_laddr) &&
2007 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
2009 if (!IN6_IS_ADDR_UNSPECIFIED(&in6p->in6p_faddr) &&
2010 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
2012 INP_RLOCK(in6p);
2014 in6p
[all...]
H A Din6_mcast.c1774 in6p_lookup_mcast_ifp(const struct inpcb *in6p, argument
1780 KASSERT(in6p->inp_vflag & INP_IPV6,
1789 in6p ? in6p->inp_inc.inc_fibnum : RT_DEFAULT_FIB);
/freebsd-10.3-release/usr.bin/netstat/
H A Dsctp.c156 inet6name(struct in6_addr *in6p) argument
173 if (!numeric_addr && !IN6_IS_ADDR_UNSPECIFIED(in6p)) {
174 hp = gethostbyaddr((char *)in6p, sizeof(*in6p), AF_INET6);
182 if (IN6_IS_ADDR_UNSPECIFIED(in6p))
188 inet_ntop(AF_INET6, (void *)in6p, ntop_buf,
H A Dinet6.c1076 inet6name(struct in6_addr *in6p) argument
1085 if (IN6_IS_ADDR_UNSPECIFIED(in6p)) {
1098 memcpy(&sin6.sin6_addr, in6p, sizeof(*in6p));
1100 /* XXX: in6p.s6_addr[2] can contain scopeid. */
/freebsd-10.3-release/lib/libc/resolv/
H A Dres_send.c175 const struct sockaddr_in6 *in6p, *srv6; local
193 in6p = (const struct sockaddr_in6 *)sa;
196 if (srv6->sin6_family == in6p->sin6_family &&
197 srv6->sin6_port == in6p->sin6_port &&
200 srv6->sin6_scope_id == in6p->sin6_scope_id) &&
203 IN6_ARE_ADDR_EQUAL(&srv6->sin6_addr, &in6p->sin6_addr)))
/freebsd-10.3-release/contrib/tcpdump/
H A Dprint-icmp6.c682 struct in6_addr in6, *in6p; local
782 in6p = (struct in6_addr *)(opri + 1);
787 TCHECK2(*in6p, 8);
791 TCHECK(*in6p);
/freebsd-10.3-release/sys/netinet/
H A Dsctp_pcb.c3685 struct in6pcb *in6p; local
3687 in6p = (struct in6pcb *)inp;
3688 ip6_freepcbopts(in6p->in6p_outputopts);

Completed in 159 milliseconds