summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-10-03 17:34:59 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-10-03 17:34:59 +0000
commit908afed17f97a3f5814f8d0d16be27b9f487f93d (patch)
tree8d4ed0546f99b25ad8c53cd7b3e8691f1181dc93 /channels.c
parent3e45e4cd003fd9aa5ae1556afd4ba405904b761f (diff)
- markus@cvs.openbsd.org 2001/10/01 21:38:53
[channels.c channels.h ssh.c sshd.c] remove ugliness; vp@drexel.edu via angelos
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 65cf2ab9..12affdc3 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.134 2001/09/17 21:04:01 markus Exp $");
+RCSID("$OpenBSD: channels.c,v 1.135 2001/10/01 21:38:53 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -133,7 +133,7 @@ static char *auth_sock_name = NULL;
static char *auth_sock_dir = NULL;
/* AF_UNSPEC or AF_INET or AF_INET6 */
-extern int IPv4or6;
+static int IPv4or6 = AF_UNSPEC;
/* helper */
static void port_open_helper(Channel *c, char *rtype);
@@ -2037,6 +2037,12 @@ channel_input_port_open(int type, int plen, void *ctxt)
/* -- tcp forwarding */
+void
+channel_set_af(int af)
+{
+ IPv4or6 = af;
+}
+
/*
* Initiate forwarding of connections to local port "port" through the secure
* channel to host:port from remote side.