]> git.proxmox.com Git - qemu.git/commit
slirp: Fix restricted mode
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Jul 2011 10:20:13 +0000 (12:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 15:19:49 +0000 (10:19 -0500)
commit12b513d837c9da5277390ddaf98ca0058339977a
tree57d4e937818492effc1f31402dc830b1ca0b206c
parent80f52a6694423da7a40e2ec39e14a5817184c7ef
slirp: Fix restricted mode

This aligns the code to what the documentation claims: Allow everything
but requests that would have to be routed outside of the virtual LAN.

So we need to drop the unneeded IP-level filter, allow TFTP requests,
and add the missing protocol-level filter to ICMP.

CC: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
slirp/ip_icmp.c
slirp/ip_input.c
slirp/udp.c