Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

inherit IPV6_V6ONLY from listening socket. NetBSD PR 21713

  • Loading branch information...
commit b66d23e9ab3d5d709b6bb0f792aa3f01bbb421ae 1 parent 6aead30
itojun authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 netbsd/sys/netinet/tcp_input.c
View
4 netbsd/sys/netinet/tcp_input.c
@@ -3332,6 +3332,10 @@ syn_cache_get(src, dst, th, hlen, tlen, so, m)
sizeof(((struct sockaddr_in *)dst)->sin_addr));
in6p->in6p_lport = ((struct sockaddr_in *)dst)->sin_port;
in6totcpcb(in6p)->t_family = AF_INET;
+ if (sotoin6pcb(oso)->in6p_flags & IN6P_IPV6_V6ONLY)
+ in6p->in6p_flags |= IN6P_IPV6_V6ONLY;
+ else
+ in6p->in6p_flags &= ~IN6P_IPV6_V6ONLY;
}
#endif
break;
Please sign in to comment.
Something went wrong with that request. Please try again.