comparison tcpfwd-remote.c @ 24:469950e86d0f

switching to global vars
author Matt Johnston <matt@ucc.asn.au>
date Tue, 20 Jul 2004 12:05:00 +0000
parents d7cc5b484a2e
children
comparison
equal deleted inserted replaced
23:c896a4dd65da 24:469950e86d0f
4 #include "dbutil.h" 4 #include "dbutil.h"
5 #include "session.h" 5 #include "session.h"
6 #include "buffer.h" 6 #include "buffer.h"
7 #include "packet.h" 7 #include "packet.h"
8 #include "listener.h" 8 #include "listener.h"
9 #include "runopts.h"
9 10
10 #ifndef DISABLE_REMOTETCPFWD 11 #ifndef DISABLE_REMOTETCPFWD
11 12
12 struct RemoteTCP { 13 struct RemoteTCP {
13 14
33 unsigned int wantreply = 0; 34 unsigned int wantreply = 0;
34 int ret = DROPBEAR_FAILURE; 35 int ret = DROPBEAR_FAILURE;
35 36
36 TRACE(("enter recv_msg_global_request_remotetcp")); 37 TRACE(("enter recv_msg_global_request_remotetcp"));
37 38
38 if (ses.opts->noremotetcp) { 39 if (opts.noremotetcp) {
39 TRACE(("leave recv_msg_global_request_remotetcp: remote tcp forwarding disabled")); 40 TRACE(("leave recv_msg_global_request_remotetcp: remote tcp forwarding disabled"));
40 goto out; 41 goto out;
41 } 42 }
42 43
43 reqname = buf_getstring(ses.payload, &namelen); 44 reqname = buf_getstring(ses.payload, &namelen);