From 6dd5ffb661a4aec28c8296b1673abdf280038cf6 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: slirp: Explicitely mark host-forwarding sockets Mark sockets that describe host forwardings. This is required for their (and only their) proper deletion and for pretty-printing. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- slirp/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slirp/slirp.c') diff --git a/slirp/slirp.c b/slirp/slirp.c index 08c10f2b36..ad35c1fb24 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -793,11 +793,11 @@ int slirp_add_hostfwd(int is_udp, struct in_addr host_addr, int host_port, } if (is_udp) { if (!udp_listen(host_addr.s_addr, htons(host_port), guest_addr.s_addr, - htons(guest_port), 0)) + htons(guest_port), SS_HOSTFWD)) return -1; } else { if (!tcp_listen(host_addr.s_addr, htons(host_port), guest_addr.s_addr, - htons(guest_port), 0)) + htons(guest_port), SS_HOSTFWD)) return -1; } return 0; -- cgit v1.2.3