From 3c6a05803c8f33b2ce6f704df87c98983029befd Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:28 +0200 Subject: slirp: Bind support for host forwarding rules Extend the hostfwd rule format so that the user can specify on which host interface qemu should listen for incoming connections. If omitted, binding will takes place against all interfaces. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- slirp/libslirp.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'slirp/libslirp.h') diff --git a/slirp/libslirp.h b/slirp/libslirp.h index e4c9c99..9be4425 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -22,10 +22,9 @@ 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_add_hostfwd(int is_udp, int host_port, +int slirp_add_hostfwd(int is_udp, struct in_addr host_addr, int host_port, struct in_addr guest_addr, int guest_port); -int slirp_remove_hostfwd(int is_udp, int host_port); - +int slirp_remove_hostfwd(int is_udp, struct in_addr host_addr, int host_port); int slirp_add_exec(int do_pty, const void *args, struct in_addr guest_addr, int guest_port); -- cgit v1.1