diff options
| author | Alexander Graf | 2009-05-26 13:03:26 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2009-05-27 16:46:12 +0200 |
| commit | c1261d8d1617d8cf5722039a59ebb66c310f3aea (patch) | |
| tree | 8aad15c7b36255d671f3911886b9c0985ee73f28 /slirp/libslirp.h | |
| parent | Allow monitor interaction when using migrate -exec (diff) | |
| download | qemu-c1261d8d1617d8cf5722039a59ebb66c310f3aea.tar.gz qemu-c1261d8d1617d8cf5722039a59ebb66c310f3aea.tar.xz qemu-c1261d8d1617d8cf5722039a59ebb66c310f3aea.zip | |
User Networking: Enable removal of redirections
Using the new host_net_redir command you can easily create redirections
on the fly while your VM is running.
While that's great, it's missing the removal of redirections, in case you
want to have a port closed again at a later point in time.
This patch adds support for removal of redirections.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/libslirp.h')
| -rw-r--r-- | slirp/libslirp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/libslirp.h b/slirp/libslirp.h index a1cd70e978..6fc2c329ad 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -18,6 +18,7 @@ void slirp_input(const uint8_t *pkt, int pkt_len); int slirp_can_output(void); void slirp_output(const uint8_t *pkt, int pkt_len); +int slirp_redir_rm(int is_udp, int host_port); int slirp_redir(int is_udp, int host_port, struct in_addr guest_addr, int guest_port); int slirp_add_exec(int do_pty, const void *args, int addr_low_byte, |
