mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
slirp: Cleanup resources on instance removal
Close & free sockets when shutting down a slirp instance, also release all buffers. CC: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
f373431977
commit
a68adc2206
10 changed files with 58 additions and 0 deletions
|
@ -61,6 +61,13 @@ ip_init(Slirp *slirp)
|
|||
icmp_init(slirp);
|
||||
}
|
||||
|
||||
void ip_cleanup(Slirp *slirp)
|
||||
{
|
||||
udp_cleanup(slirp);
|
||||
tcp_cleanup(slirp);
|
||||
icmp_cleanup(slirp);
|
||||
}
|
||||
|
||||
/*
|
||||
* Ip input routine. Checksum and byte swap header. If fragmented
|
||||
* try to reassemble. Process options. Pass to next level.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue