diff options
author | 2001-10-01 21:38:53 +0000 | |
---|---|---|
committer | 2001-10-01 21:38:53 +0000 | |
commit | 92f158c349eced61813b67415ec8bcaabe94ef23 (patch) | |
tree | b4559d5e2531241d1e1d529f85647370e6145339 /usr.bin/ssh/channels.c | |
parent | new rmd160 implementation. based on (diff) | |
download | wireguard-openbsd-92f158c349eced61813b67415ec8bcaabe94ef23.tar.xz wireguard-openbsd-92f158c349eced61813b67415ec8bcaabe94ef23.zip |
remove ugliness; vp@drexel.edu via angelos
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r-- | usr.bin/ssh/channels.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 82cf8fe077b..6a8cec5fef1 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/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. |