comparison svr-tcpfwd.c @ 1032:0da8ba489c23 fastopen

Move generic network routines to netio.c
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Feb 2015 23:16:38 +0800
parents 02baa0b334e8
children c45d65392c1a
comparison
equal deleted inserted replaced
1031:64c0aa01e2b6 1032:0da8ba489c23
31 #include "buffer.h" 31 #include "buffer.h"
32 #include "packet.h" 32 #include "packet.h"
33 #include "listener.h" 33 #include "listener.h"
34 #include "runopts.h" 34 #include "runopts.h"
35 #include "auth.h" 35 #include "auth.h"
36 #include "netio.h"
36 37
37 #ifndef ENABLE_SVR_REMOTETCPFWD 38 #ifndef ENABLE_SVR_REMOTETCPFWD
38 39
39 /* This is better than SSH_MSG_UNIMPLEMENTED */ 40 /* This is better than SSH_MSG_UNIMPLEMENTED */
40 void recv_msg_global_request_remotetcp() { 41 void recv_msg_global_request_remotetcp() {
234 unsigned char* desthost = NULL; 235 unsigned char* desthost = NULL;
235 unsigned int destport; 236 unsigned int destport;
236 unsigned char* orighost = NULL; 237 unsigned char* orighost = NULL;
237 unsigned int origport; 238 unsigned int origport;
238 char portstring[NI_MAXSERV]; 239 char portstring[NI_MAXSERV];
239 int sock;
240 int len; 240 int len;
241 int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; 241 int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED;
242 242
243 TRACE(("newtcpdirect channel %d", channel->index)) 243 TRACE(("newtcpdirect channel %d", channel->index))
244 244