Home | History | Annotate | Download | only in android

Lines Matching defs:redir

86 } RedirRec, *Redir;
112 Redir redirs;
142 Redir redir;
149 Redir new_redirs = realloc( global->redirs, new_max*sizeof(global->redirs[0]) );
157 redir = &global->redirs[ global->num_redirs++ ];
159 redir->host_port = host_port;
160 redir->host_udp = host_udp;
161 redir->guest_ip = guest_ip;
162 redir->guest_port = guest_port;
176 Redir redir = &global->redirs[nn];
178 if ( redir->host_port == host_port &&
179 redir->host_udp == host_udp )
181 memmove( redir, redir + 1, ((global->num_redirs - nn)-1)*sizeof(*redir) );
826 Redir redir = &global->redirs[nn];
828 redir->host_udp ? "udp" : "tcp",
829 redir->host_port,
830 redir->guest_port );
877 static Redir
883 Redir redir = &global->redirs[nn];
885 if (redir->host_port == port && redir->host_udp == isudp)
886 return redir;
897 Redir redir;
916 redir = redir_find( client->global, host_port, host_proto );
917 if ( redir != NULL ) {
918 control_write( client, "KO: host port already active, use 'redir del' to remove first\r\n" );
953 Redir redir;
961 redir = redir_find( client->global, port, proto );
962 if (redir == NULL) {
968 slirp_unredir( redir->host_udp, redir->host_port );
981 "list current port redirections. use 'redir add' and 'redir del' to add and remove them\r\n", NULL,
986 " redir add <protocol>:<host-port>:<guest-port>\r\n\r\n"
990 "\r\nas an example, 'redir tcp:5000:6000' will allow any packets sent to\r\n"
995 "remove a port redirecion that was created with 'redir add', arguments must be:\r\n\r\n"
996 " redir del <protocol>:<host-port>\r\n\r\n"
997 "see the 'help redir add' for the meaning of <protocol> and <host-port>\r\n", NULL,
2920 { "redir", "manage port redirections",
2922 "as an example, 'redir tcp:5000:6000' will route any packet sent to the host's TCP port 5000\r\n"