diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | INSTALL | 6 | ||||
-rw-r--r-- | acconfig.h | 3 | ||||
-rw-r--r-- | configure.in | 9 | ||||
-rw-r--r-- | ssh.c | 6 | ||||
-rw-r--r-- | sshd.c | 6 |
6 files changed, 31 insertions, 2 deletions
@@ -1,6 +1,9 @@ | |||
1 | 20000119 | 1 | 20000119 |
2 | - SCO compile fixes from Gary E. Miller <gem@rellim.com> | 2 | - SCO compile fixes from Gary E. Miller <gem@rellim.com> |
3 | - Compile fix from Darren_Hall@progressive.com | 3 | - Compile fix from Darren_Hall@progressive.com |
4 | - Linux/glibc-2.1.2 takes a *long* time to look up names for AF_UNSPEC | ||
5 | addresses using getaddrinfo(). Added a configure switch to make the | ||
6 | default lookup mode AF_INET | ||
4 | 7 | ||
5 | 20000118 | 8 | 20000118 |
6 | - Fixed --with-pid-dir option | 9 | - Fixed --with-pid-dir option |
@@ -150,6 +150,12 @@ created. | |||
150 | libsocks library isn't installed in a library searched by the compiler, | 150 | libsocks library isn't installed in a library searched by the compiler, |
151 | add the directory name as the option. | 151 | add the directory name as the option. |
152 | 152 | ||
153 | --with-ipv4-default instructs OpenSSH to use IPv4 by default for new | ||
154 | connections. Normally OpenSSH will try attempt to lookup both IPv6 and | ||
155 | IPv4 addresses. On Linux/glibc-2.1.2 this causes long delays in name | ||
156 | resolution. If this option is specified, you can still attempt to | ||
157 | connect to IPv6 addresses using the command line option '-6'. | ||
158 | |||
153 | If you need to pass special options to the compiler or linker, you | 159 | If you need to pass special options to the compiler or linker, you |
154 | can specify these as enviornment variables before running ./configure. | 160 | can specify these as enviornment variables before running ./configure. |
155 | For example: | 161 | For example: |
diff --git a/acconfig.h b/acconfig.h index 30a1dc96c..f143b1b10 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -135,6 +135,9 @@ | |||
135 | /* Specify location of ssh.pid */ | 135 | /* Specify location of ssh.pid */ |
136 | #undef PIDDIR | 136 | #undef PIDDIR |
137 | 137 | ||
138 | /* Use IPv4 for connection by default, IPv6 can still if explicity asked */ | ||
139 | #undef IPV4_DEFAULT | ||
140 | |||
138 | @BOTTOM@ | 141 | @BOTTOM@ |
139 | 142 | ||
140 | /* ******************* Shouldn't need to edit below this line ************** */ | 143 | /* ******************* Shouldn't need to edit below this line ************** */ |
diff --git a/configure.in b/configure.in index d11c519df..45df18f6d 100644 --- a/configure.in +++ b/configure.in | |||
@@ -662,6 +662,15 @@ AC_ARG_WITH(default-path, | |||
662 | ] | 662 | ] |
663 | ) | 663 | ) |
664 | 664 | ||
665 | AC_ARG_WITH(ipv4-default, | ||
666 | [ --with-ipv4-default Use IPv4 by connections unless '-6' specified], | ||
667 | [ | ||
668 | if test "x$withval" != "xno" ; then | ||
669 | AC_DEFINE(IPV4_DEFAULT) | ||
670 | fi | ||
671 | ] | ||
672 | ) | ||
673 | |||
665 | piddir=/var/run | 674 | piddir=/var/run |
666 | AC_ARG_WITH(pid-dir, | 675 | AC_ARG_WITH(pid-dir, |
667 | [ --with-pid-dir=PATH Specify location of ssh.pid file], | 676 | [ --with-pid-dir=PATH Specify location of ssh.pid file], |
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "includes.h" | 13 | #include "includes.h" |
14 | RCSID("$Id: ssh.c,v 1.16 2000/01/14 04:45:51 damien Exp $"); | 14 | RCSID("$Id: ssh.c,v 1.17 2000/01/19 03:36:49 damien Exp $"); |
15 | 15 | ||
16 | #include "xmalloc.h" | 16 | #include "xmalloc.h" |
17 | #include "ssh.h" | 17 | #include "ssh.h" |
@@ -29,7 +29,11 @@ const char *__progname = "ssh"; | |||
29 | 29 | ||
30 | /* Flag indicating whether IPv4 or IPv6. This can be set on the command line. | 30 | /* Flag indicating whether IPv4 or IPv6. This can be set on the command line. |
31 | Default value is AF_UNSPEC means both IPv4 and IPv6. */ | 31 | Default value is AF_UNSPEC means both IPv4 and IPv6. */ |
32 | #ifdef IPV4_DEFAULT | ||
33 | int IPv4or6 = AF_INET; | ||
34 | #else | ||
32 | int IPv4or6 = AF_UNSPEC; | 35 | int IPv4or6 = AF_UNSPEC; |
36 | #endif | ||
33 | 37 | ||
34 | /* Flag indicating whether debug mode is on. This can be set on the command line. */ | 38 | /* Flag indicating whether debug mode is on. This can be set on the command line. */ |
35 | int debug_flag = 0; | 39 | int debug_flag = 0; |
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "includes.h" | 13 | #include "includes.h" |
14 | RCSID("$Id: sshd.c,v 1.50 2000/01/14 04:45:52 damien Exp $"); | 14 | RCSID("$Id: sshd.c,v 1.51 2000/01/19 03:36:50 damien Exp $"); |
15 | 15 | ||
16 | #include "xmalloc.h" | 16 | #include "xmalloc.h" |
17 | #include "rsa.h" | 17 | #include "rsa.h" |
@@ -49,7 +49,11 @@ char *config_file_name = SERVER_CONFIG_FILE; | |||
49 | * Flag indicating whether IPv4 or IPv6. This can be set on the command line. | 49 | * Flag indicating whether IPv4 or IPv6. This can be set on the command line. |
50 | * Default value is AF_UNSPEC means both IPv4 and IPv6. | 50 | * Default value is AF_UNSPEC means both IPv4 and IPv6. |
51 | */ | 51 | */ |
52 | #ifdef IPV4_DEFAULT | ||
53 | int IPv4or6 = AF_INET; | ||
54 | #else | ||
52 | int IPv4or6 = AF_UNSPEC; | 55 | int IPv4or6 = AF_UNSPEC; |
56 | #endif | ||
53 | 57 | ||
54 | /* | 58 | /* |
55 | * Debug mode flag. This can be set on the command line. If debug | 59 | * Debug mode flag. This can be set on the command line. If debug |