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 --- slirp/udp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'slirp/udp.c') diff --git a/slirp/udp.c b/slirp/udp.c index 8030326..ca353b7 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -158,6 +158,9 @@ udp_input(m, iphlen) goto bad; } + if (slirp_restrict) + goto bad; + /* * handle TFTP */ -- cgit v1.1