summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-02-28 17:11:10 +0000
committerume <ume@FreeBSD.org>2002-02-28 17:11:10 +0000
commit3d5b174433d2d2c24f8a611f0d8ed822513fa46e (patch)
tree54043b37887f153e98f62f97b88e3d03f91e8f53 /sys/netinet/tcp_usrreq.c
parent7bf004382faaec4048fe51fff89505f13a1bed3a (diff)
downloadFreeBSD-src-3d5b174433d2d2c24f8a611f0d8ed822513fa46e.zip
FreeBSD-src-3d5b174433d2d2c24f8a611f0d8ed822513fa46e.tar.gz
- Set inc_isipv6 in tcp6_usr_connect().
- When making a pcb from a sync cache, do not forget to copy inc_isipv6. Obtained from: KAME MFC After: 1 week
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index c3aa59f..fbe114b 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -378,6 +378,7 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
}
inp->inp_vflag &= ~INP_IPV4;
inp->inp_vflag |= INP_IPV6;
+ inp->inp_inc.inc_isipv6 = 1;
if ((error = tcp6_connect(tp, nam, td)) != 0)
goto out;
error = tcp_output(tp);
OpenPOWER on IntegriCloud