Mercurial > dropbear
comparison tcp-connect.c @ 63:dcc43965928f
- A nice cleaner structure for tcp (acceptor) forwarding.
- still a checkpoint-ish commit
- sorted out listening on localhost only
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 11 Aug 2004 17:26:47 +0000 |
parents | 20563735e8b5 |
children |
comparison
equal
deleted
inserted
replaced
62:20563735e8b5 | 63:dcc43965928f |
---|---|
13 | 13 |
14 unsigned char* desthost = NULL; | 14 unsigned char* desthost = NULL; |
15 unsigned int destport; | 15 unsigned int destport; |
16 unsigned char* orighost = NULL; | 16 unsigned char* orighost = NULL; |
17 unsigned int origport; | 17 unsigned int origport; |
18 char portstring[6]; | 18 char portstring[NI_MAXSERV]; |
19 int sock; | 19 int sock; |
20 int len; | 20 int len; |
21 int ret = DROPBEAR_FAILURE; | 21 int ret = DROPBEAR_FAILURE; |
22 | 22 |
23 if (opts.nolocaltcp) { | 23 if (opts.nolocaltcp) { |