diff options
author | ume <ume@FreeBSD.org> | 2002-02-28 17:11:10 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-02-28 17:11:10 +0000 |
commit | 3d5b174433d2d2c24f8a611f0d8ed822513fa46e (patch) | |
tree | 54043b37887f153e98f62f97b88e3d03f91e8f53 /sys/netinet | |
parent | 7bf004382faaec4048fe51fff89505f13a1bed3a (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 1 | ||||
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 099861a..b762065 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -552,6 +552,7 @@ syncache_socket(sc, lso) /* * Insert new socket into hash list. */ + inp->inp_inc.inc_isipv6 = sc->sc_inc.inc_isipv6; #ifdef INET6 if (sc->sc_inc.inc_isipv6) { inp->in6p_laddr = sc->sc_inc.inc6_laddr; 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); |