From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOWQh-0000Bg-S3 for qemu-devel@nongnu.org; Mon, 23 May 2011 10:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOWQg-0002vK-IT for qemu-devel@nongnu.org; Mon, 23 May 2011 10:48:23 -0400 Received: from thoth.sbs.de ([192.35.17.2]:24866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOWQg-0002v1-8b for qemu-devel@nongnu.org; Mon, 23 May 2011 10:48:22 -0400 From: Jan Kiszka Date: Mon, 23 May 2011 16:48:15 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 0/4] slirp: Fixes for restricted mode and more List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gleb Natapov For isolating slirp-attached guests from the world, QEMU provides the restricted mode. However, its implementation suffers from bugs that makes it practically unusable. Most probablematic is broken DHCP. This series fixes that and canonicalizes the corresponding command line switch. It also cleans up the addressing of the built-in DHCP and TFTP server and drops the pointless m_freem wrapper. Please review/merge. CC: Gleb Natapov Jan Kiszka (4): slirp: Fix restricted mode slirp: Canonicalize restrict syntax slirp: Strictly associate DHCP/BOOTP and TFTP with virtual host slirp: Replace m_freem with m_free net/slirp.c | 21 +++++++++++++++------ qemu-options.hx | 4 ++-- slirp/ip_icmp.c | 8 +++++--- slirp/ip_input.c | 29 ++++------------------------- slirp/ip_output.c | 4 ++-- slirp/mbuf.h | 3 --- slirp/tcp_input.c | 10 +++++----- slirp/tcp_subr.c | 2 +- slirp/udp.c | 23 +++++++++++++---------- 9 files changed, 47 insertions(+), 57 deletions(-)