Lines Matching refs:tcpinfo
39 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata);
41 m_free(tcpinfo->sendaddr);
42 m_free(tcpinfo->listenaddr);
43 m_free(tcpinfo);
52 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata);
67 if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) {
71 if (tcpinfo->tcp_type == direct) {
74 addr = tcpinfo->sendaddr;
75 port = tcpinfo->sendport;
77 dropbear_assert(tcpinfo->tcp_type == forwarded);
80 addr = tcpinfo->listenaddr;
81 port = tcpinfo->listenport;
100 int listen_tcpfwd(struct TCPListener* tcpinfo) {
113 snprintf(portstring, sizeof(portstring), "%d", tcpinfo->listenport);
117 && (strcmp(tcpinfo->listenaddr, "localhost") != 0) ) {
118 listen_spec = tcpinfo->listenaddr;
132 listener = new_listener(socks, nsocks, CHANNEL_ID_TCPFORWARDED, tcpinfo,