Mercurial > dropbear
comparison cli-tcpfwd.c @ 108:10f4d3319780
- added circular buffering for channels
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 26 Aug 2004 13:16:40 +0000 |
parents | e3adf4cf5465 |
children | 8c2b3506f112 |
comparison
equal
deleted
inserted
replaced
107:d3eb1fa8484e | 108:10f4d3319780 |
---|---|
87 | 87 |
88 TRACE(("enter cli_localtcp: %d %s %d", listenport, remoteaddr, | 88 TRACE(("enter cli_localtcp: %d %s %d", listenport, remoteaddr, |
89 remoteport)); | 89 remoteport)); |
90 | 90 |
91 tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener*)); | 91 tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener*)); |
92 tcpinfo->sendaddr = remoteaddr; | 92 tcpinfo->sendaddr = m_strdup(remoteaddr); |
93 tcpinfo->sendport = remoteport; | 93 tcpinfo->sendport = remoteport; |
94 tcpinfo->listenport = listenport; | 94 tcpinfo->listenport = listenport; |
95 tcpinfo->chantype = &cli_chan_tcplocal; | 95 tcpinfo->chantype = &cli_chan_tcplocal; |
96 | 96 |
97 ret = listen_tcpfwd(tcpinfo); | 97 ret = listen_tcpfwd(tcpinfo); |