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)
commit7e6755f20ffcb4fffdb45af6abcbfb261b603014
tree57d4e937818492effc1f31402dc830b1ca0b206c
parentee2c7fad2b26c4b70af67624f82b2fc29a04e237
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