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