comparison remotetcpfwd.c @ 7:425ed5c20157

Chantype handling is sorted
author Matt Johnston <matt@ucc.asn.au>
date Wed, 02 Jun 2004 04:59:49 +0000
parents fe6bca95afa7
children
comparison
equal deleted inserted replaced
6:ab00ef513e97 7:425ed5c20157
88 if (getnameinfo(&addr, len, ipstring, sizeof(ipstring), portstring, 88 if (getnameinfo(&addr, len, ipstring, sizeof(ipstring), portstring,
89 sizeof(portstring), NI_NUMERICHOST | NI_NUMERICSERV) != 0) { 89 sizeof(portstring), NI_NUMERICHOST | NI_NUMERICSERV) != 0) {
90 return; 90 return;
91 } 91 }
92 92
93 /* XXX XXX XXX - type here needs fixing */
93 if (send_msg_channel_open_init(fd, CHANNEL_ID_TCPFORWARDED, 94 if (send_msg_channel_open_init(fd, CHANNEL_ID_TCPFORWARDED,
94 "forwarded-tcpip") == DROPBEAR_SUCCESS) { 95 "forwarded-tcpip") == DROPBEAR_SUCCESS) {
95 buf_putstring(ses.writepayload, tcpinfo->addr, 96 buf_putstring(ses.writepayload, tcpinfo->addr,
96 strlen(tcpinfo->addr)); 97 strlen(tcpinfo->addr));
97 buf_putint(ses.writepayload, tcpinfo->port); 98 buf_putint(ses.writepayload, tcpinfo->port);