summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--INSTALL6
-rw-r--r--acconfig.h3
-rw-r--r--configure.in9
-rw-r--r--ssh.c6
-rw-r--r--sshd.c6
6 files changed, 31 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b6dd40b5..5b7e5fcc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
120000119 120000119
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
520000118 820000118
6 - Fixed --with-pid-dir option 9 - Fixed --with-pid-dir option
diff --git a/INSTALL b/INSTALL
index 9ea5a2533..95722e4d1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -150,6 +150,12 @@ created.
150libsocks library isn't installed in a library searched by the compiler, 150libsocks library isn't installed in a library searched by the compiler,
151add the directory name as the option. 151add the directory name as the option.
152 152
153--with-ipv4-default instructs OpenSSH to use IPv4 by default for new
154connections. Normally OpenSSH will try attempt to lookup both IPv6 and
155IPv4 addresses. On Linux/glibc-2.1.2 this causes long delays in name
156resolution. If this option is specified, you can still attempt to
157connect to IPv6 addresses using the command line option '-6'.
158
153If you need to pass special options to the compiler or linker, you 159If you need to pass special options to the compiler or linker, you
154can specify these as enviornment variables before running ./configure. 160can specify these as enviornment variables before running ./configure.
155For example: 161For 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
665AC_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
665piddir=/var/run 674piddir=/var/run
666AC_ARG_WITH(pid-dir, 675AC_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],
diff --git a/ssh.c b/ssh.c
index 962aa2d43..2a2fb2d35 100644
--- a/ssh.c
+++ b/ssh.c
@@ -11,7 +11,7 @@
11 */ 11 */
12 12
13#include "includes.h" 13#include "includes.h"
14RCSID("$Id: ssh.c,v 1.16 2000/01/14 04:45:51 damien Exp $"); 14RCSID("$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
33int IPv4or6 = AF_INET;
34#else
32int IPv4or6 = AF_UNSPEC; 35int 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. */
35int debug_flag = 0; 39int debug_flag = 0;
diff --git a/sshd.c b/sshd.c
index 316723a83..371b2a578 100644
--- a/sshd.c
+++ b/sshd.c
@@ -11,7 +11,7 @@
11 */ 11 */
12 12
13#include "includes.h" 13#include "includes.h"
14RCSID("$Id: sshd.c,v 1.50 2000/01/14 04:45:52 damien Exp $"); 14RCSID("$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
53int IPv4or6 = AF_INET;
54#else
52int IPv4or6 = AF_UNSPEC; 55int 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