From a9ba3a856d8e84f4c32bcfa2b92727b7add4996c Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 8 Jan 2009 19:24:00 +0000 Subject: Add slirp_restrict option (Gleb Natapov) Add "slirp firewall" to permit connection only to vmchannel addresses. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6241 c046a42c-6fe2-441c-8c8c-71466251a162 --- net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.c') diff --git a/net.c b/net.c index 0a91585..ea7e4b2 100644 --- a/net.c +++ b/net.c @@ -483,7 +483,7 @@ static int net_slirp_init(VLANState *vlan, const char *model, const char *name) { if (!slirp_inited) { slirp_inited = 1; - slirp_init(); + slirp_init(0, NULL); } slirp_vc = qemu_new_vlan_client(vlan, model, name, slirp_receive, NULL, NULL); @@ -501,7 +501,7 @@ void net_slirp_redir(const char *redir_str) if (!slirp_inited) { slirp_inited = 1; - slirp_init(); + slirp_init(0, NULL); } p = redir_str; @@ -587,7 +587,7 @@ void net_slirp_smb(const char *exported_dir) if (!slirp_inited) { slirp_inited = 1; - slirp_init(); + slirp_init(0, NULL); } /* XXX: better tmp dir construction */ -- cgit v1.1