From bb53fc5394201c0cbe3c89a1c9fa5fbd6a3b832c Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 22 Jul 2009 17:03:52 +0200 Subject: slirp: Fix guestfwd for incoming data Unless a virtual server address was explicitly defined (which is impossible with the legacy -net channel format), guestfwd did not properly forwarded host->guest packets. This patch fixes it. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- slirp/libslirp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slirp/libslirp.h') diff --git a/slirp/libslirp.h b/slirp/libslirp.h index 3bcc392..93087ed 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -33,7 +33,7 @@ int slirp_add_hostfwd(Slirp *slirp, int is_udp, int slirp_remove_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr, int host_port); int slirp_add_exec(Slirp *slirp, int do_pty, const void *args, - struct in_addr guest_addr, int guest_port); + struct in_addr *guest_addr, int guest_port); void slirp_connection_info(Slirp *slirp, Monitor *mon); -- cgit v1.1