diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/channels.c b/channels.c index 65cf2ab9e..12affdc34 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.134 2001/09/17 21:04:01 markus Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.135 2001/10/01 21:38:53 markus Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -133,7 +133,7 @@ static char *auth_sock_name = NULL; | |||
133 | static char *auth_sock_dir = NULL; | 133 | static char *auth_sock_dir = NULL; |
134 | 134 | ||
135 | /* AF_UNSPEC or AF_INET or AF_INET6 */ | 135 | /* AF_UNSPEC or AF_INET or AF_INET6 */ |
136 | extern int IPv4or6; | 136 | static int IPv4or6 = AF_UNSPEC; |
137 | 137 | ||
138 | /* helper */ | 138 | /* helper */ |
139 | static void port_open_helper(Channel *c, char *rtype); | 139 | static void port_open_helper(Channel *c, char *rtype); |
@@ -2037,6 +2037,12 @@ channel_input_port_open(int type, int plen, void *ctxt) | |||
2037 | 2037 | ||
2038 | /* -- tcp forwarding */ | 2038 | /* -- tcp forwarding */ |
2039 | 2039 | ||
2040 | void | ||
2041 | channel_set_af(int af) | ||
2042 | { | ||
2043 | IPv4or6 = af; | ||
2044 | } | ||
2045 | |||
2040 | /* | 2046 | /* |
2041 | * Initiate forwarding of connections to local port "port" through the secure | 2047 | * Initiate forwarding of connections to local port "port" through the secure |
2042 | * channel to host:port from remote side. | 2048 | * channel to host:port from remote side. |