Home
last modified time | relevance | path

Searched refs:tcpinfo (Results 1 – 5 of 5) sorted by relevance

/external/iptables/extensions/
Dlibxt_tcp.c105 parse_tcp_flags(struct xt_tcp *tcpinfo, in parse_tcp_flags() argument
110 tcpinfo->flg_mask = parse_tcp_flag(mask); in parse_tcp_flags()
111 tcpinfo->flg_cmp = parse_tcp_flag(cmp); in parse_tcp_flags()
114 tcpinfo->invflags |= XT_TCP_INV_FLAGS; in parse_tcp_flags()
130 struct xt_tcp *tcpinfo = (struct xt_tcp *)m->data; in tcp_init() local
132 tcpinfo->spts[1] = tcpinfo->dpts[1] = 0xFFFF; in tcp_init()
144 struct xt_tcp *tcpinfo = (struct xt_tcp *)(*match)->data; in tcp_parse() local
152 parse_tcp_ports(optarg, tcpinfo->spts); in tcp_parse()
154 tcpinfo->invflags |= XT_TCP_INV_SRCPT; in tcp_parse()
163 parse_tcp_ports(optarg, tcpinfo->dpts); in tcp_parse()
[all …]
/external/dropbear/
Dtcp-accept.c39 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()
[all …]
Dsvr-tcpfwd.c144 struct TCPListener tcpinfo; in svr_cancelremotetcp() local
156 tcpinfo.sendaddr = NULL; in svr_cancelremotetcp()
157 tcpinfo.sendport = 0; in svr_cancelremotetcp()
158 tcpinfo.listenaddr = bindaddr; in svr_cancelremotetcp()
159 tcpinfo.listenport = port; in svr_cancelremotetcp()
160 listener = get_listener(CHANNEL_ID_TCPFORWARDED, &tcpinfo, matchtcp); in svr_cancelremotetcp()
177 struct TCPListener *tcpinfo = NULL; in svr_remotetcpreq() local
205 tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener)); in svr_remotetcpreq()
206 tcpinfo->sendaddr = NULL; in svr_remotetcpreq()
207 tcpinfo->sendport = 0; in svr_remotetcpreq()
[all …]
Dcli-tcpfwd.c91 struct TCPListener* tcpinfo = NULL; in cli_localtcp() local
97 tcpinfo = (struct TCPListener*)m_malloc(sizeof(struct TCPListener)); in cli_localtcp()
99 tcpinfo->sendaddr = m_strdup(remoteaddr); in cli_localtcp()
100 tcpinfo->sendport = remoteport; in cli_localtcp()
103 tcpinfo->listenaddr = m_strdup(""); in cli_localtcp()
105 tcpinfo->listenaddr = m_strdup("localhost"); in cli_localtcp()
107 tcpinfo->listenport = listenport; in cli_localtcp()
109 tcpinfo->chantype = &cli_chan_tcplocal; in cli_localtcp()
110 tcpinfo->tcp_type = direct; in cli_localtcp()
112 ret = listen_tcpfwd(tcpinfo); in cli_localtcp()
[all …]
Dtcpfwd.h66 int listen_tcpfwd(struct TCPListener* tcpinfo);