Home | History | Annotate | Download | only in android

Lines Matching defs:redir

89 } RedirRec, *Redir;
115 Redir redirs;
145 Redir redir;
152 Redir new_redirs = realloc( global->redirs, new_max*sizeof(global->redirs[0]) );
160 redir = &global->redirs[ global->num_redirs++ ];
162 redir->host_port = host_port;
163 redir->host_udp = host_udp;
164 redir->guest_ip = guest_ip;
165 redir->guest_port = guest_port;
179 Redir redir = &global->redirs[nn];
181 if ( redir->host_port == host_port &&
182 redir->host_udp == host_udp )
184 memmove( redir, redir + 1, ((global->num_redirs - nn)-1)*sizeof(*redir) );
846 Redir redir = &global->redirs[nn];
848 redir->host_udp ? "udp" : "tcp",
849 redir->host_port,
850 redir->guest_port );
897 static Redir
903 Redir redir = &global->redirs[nn];
905 if (redir->host_port == port && redir->host_udp == isudp)
906 return redir;
917 Redir redir;
936 redir = redir_find( client->global, host_port, host_proto );
937 if ( redir != NULL ) {
938 control_write( client, "KO: host port already active, use 'redir del' to remove first\r\n" );
973 Redir redir;
981 redir = redir_find( client->global, port, proto );
982 if (redir == NULL) {
988 slirp_unredir( redir->host_udp, redir->host_port );
1001 "list current port redirections. use 'redir add' and 'redir del' to add and remove them\r\n", NULL,
1006 " redir add <protocol>:<host-port>:<guest-port>\r\n\r\n"
1010 "\r\nas an example, 'redir tcp:5000:6000' will allow any packets sent to\r\n"
1015 "remove a port redirecion that was created with 'redir add', arguments must be:\r\n\r\n"
1016 " redir del <protocol>:<host-port>\r\n\r\n"
1017 "see the 'help redir add' for the meaning of <protocol> and <host-port>\r\n", NULL,
2960 { "redir", "manage port redirections",
2962 "as an example, 'redir tcp:5000:6000' will route any packet sent to the host's TCP port 5000\r\n"