diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 1999-12-07 17:39:16 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 1999-12-07 17:39:16 +0000 |
| commit | cfa1ca9dfa0ee5bed5cc1cb0b07820701abbb431 (patch) | |
| tree | 801e5fed92f86a2a376a17c46a0eebebf9174733 /sys/netinet/tcp_usrreq.c | |
| parent | 07677171f8dabbf0b4b1e3f9fab859f6cca57377 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
| -rw-r--r-- | sys/netinet/tcp_usrreq.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 49fca1e066c4..af43fc346e4c 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -34,6 +34,7 @@ * $FreeBSD$ */ +#include "opt_inet6.h" #include "opt_tcpdebug.h" #include <sys/param.h> @@ -535,7 +536,7 @@ tcp_connect(tp, nam, p) sin->sin_addr, sin->sin_port, inp->inp_laddr.s_addr != INADDR_ANY ? inp->inp_laddr : ifaddr->sin_addr, - inp->inp_lport, 0); + inp->inp_lport, 0, NULL); if (oinp) { if (oinp != inp && (otp = intotcpcb(oinp)) != NULL && otp->t_state == TCPS_TIME_WAIT && @@ -731,6 +732,9 @@ tcp_attach(so, p) if (error) return (error); inp = sotoinpcb(so); +#ifdef INET6 + inp->inp_vflag |= INP_IPV4; +#endif tp = tcp_newtcpcb(inp); if (tp == 0) { int nofd = so->so_state & SS_NOFDREF; /* XXX */ |
