From f3546deb079fd9e069870b9fd2f22bb48d5c8254 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:28 +0200 Subject: slirp: Rework monitor commands for host forwarding Improve the monitor interface for adding and removing host forwarding rules by splitting it up in two commands and rename them to hostfwd_add and hostfwd_remove. Also split up the paths taken for legacy -redir support and the monitor add command as the latter will be extended later on. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net.h') diff --git a/net.h b/net.h index 01f3450208..9edfab108e 100644 --- a/net.h +++ b/net.h @@ -132,7 +132,9 @@ int net_client_init(Monitor *mon, const char *device, const char *p); void net_client_uninit(NICInfo *nd); int net_client_parse(const char *str); void net_slirp_smb(const char *exported_dir); -void net_slirp_redir(Monitor *mon, const char *redir_str, const char *redir_opt2); +void net_slirp_hostfwd_add(Monitor *mon, const char *redir_str); +void net_slirp_hostfwd_remove(Monitor *mon, const char *port_str); +void net_slirp_redir(const char *redir_str); void net_cleanup(void); int slirp_is_inited(void); void net_client_check(void); -- cgit v1.2.1