Skip to content

slirp: Fixes for restricted mode and more

Jan Kiszka qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4slirp: Fix restricted modeslirp/ip_icmp.c slirp/ip_input.c slirp/udp.c+6 -256 replies
2/4slirp: Canonicalize restrict syntaxnet/slirp.c qemu-options.hx+17 -80 replies
3/4slirp: Strictly associate DHCP/BOOTP and TFTP with virtual hostslirp/udp.c+8 -50 replies
4/4slirp: Replace m_freem with m_freeslirp/ip_icmp.c slirp/ip_input.c slirp/ip_output.c +4 more+16 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] slirp: Fixes for restricted mode and more

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 <[email protected]>

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(-)