]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
slirp: harden backend reinitialization
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 27 May 2026 16:06:10 +0000 (09:06 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 4 Jun 2026 04:29:27 +0000 (21:29 -0700)
commit400b40c853f0151f87257f98a3f58c57b0bbec86
tree3cbaac015da68487fbfb172afc45067fc4034f8b
parentd6f7194ecf330672019bdc841652df54d77888c0
slirp: harden backend reinitialization

Ariadne can close and reopen the selected Ethernet backend while
guest software probes or retries card configuration. The SLIRP
backend destroyed callback state before the receive thread was known
to be stopped, and ignored initialization or thread start failures.

Join the receive thread before teardown, keep callback state alive
until shutdown completes, report SLIRP startup failures, and reset or
reuse BOOTP leases across backend restarts.
ethernet.cpp
slirp/bootp.cpp
slirp/bootp.h
slirp/slirp.cpp
slirp_uae.cpp