---
qemu-monitor.hx | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 5ea5748..21aeb6b 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -953,7 +953,14 @@ ETEXI
.help = "redirect TCP or UDP connections from host to guest
(requires -net user)",
.mhandler.cmd = net_slirp_hostfwd_add,
},
+#endif
+STEXI
address@hidden hostfwd_add
address@hidden hostfwd_add
+Redirect TCP or UDP connections from host to guest (requires -net user).
+ETEXI
+#ifdef CONFIG_SLIRP
{
.name = "hostfwd_remove",
.args_type = "arg1:s,arg2:s?,arg3:s?",
@@ -964,9 +971,9 @@ ETEXI
#endif
STEXI
address@hidden host_net_redir
address@hidden host_net_redir
-Redirect TCP or UDP connections from host to guest (requires -net user).
address@hidden hostfwd_remove
address@hidden hostfwd_remove
+Remove host-to-guest TCP or UDP redirection.
ETEXI
{