]> gitweb.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
slirp: harden restart and DNS handling
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 4 Jun 2026 14:56:58 +0000 (07:56 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 7 Jul 2026 20:47:38 +0000 (13:47 -0700)
commitdb930ca3023cf802a28222ad7c4d377736633a08
tree435c04c694e1dd8be40bb2531ee95651dc6d66c0
parent7b6e57df6cdc3f41c6b67bd80fe6a204aabaf5ab
slirp: harden restart and DNS handling

Reset transient SLIRP state when the backend is restarted, and make
DHCP DNS advertisement depend on an available resolver.

Keep host loopback resolvers unchanged instead of rewriting them to the
virtual host address. The guest still talks to the SLIRP DNS proxy, but
the proxy must query the resolver configured on the host.

This keeps the emulated network usable after reconfiguration and avoids
advertising a DNS forwarder that cannot answer.
slirp/bootp.cpp
slirp/ip_icmp.cpp
slirp/main.h
slirp/slirp.cpp
slirp/socket.cpp
slirp/tcp_subr.cpp