Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/netinet Pull up revisions 1.168 (requested by itoju...
details: https://anonhg.NetBSD.org/src/rev/df2c0300a325
branches: netbsd-1-6
changeset: 530329:df2c0300a325
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Jun 17 09:48:25 2003 +0000
description:
Pull up revisions 1.168 (requested by itojun in ticket #1304):
inherit IPV6_V6ONLY from listening socket. Fixes PR#21713.
diffstat:
sys/netinet/tcp_input.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r e903b2b32972 -r df2c0300a325 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Tue Jun 17 09:28:02 2003 +0000
+++ b/sys/netinet/tcp_input.c Tue Jun 17 09:48:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.141.4.5 2002/10/23 12:21:24 lukem Exp $ */
+/* $NetBSD: tcp_input.c,v 1.141.4.6 2003/06/17 09:48:25 msaitoh Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -152,7 +152,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.141.4.5 2002/10/23 12:21:24 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.141.4.6 2003/06/17 09:48:25 msaitoh Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -3158,6 +3158,10 @@
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;
Home |
Main Index |
Thread Index |
Old Index