aboutsummaryrefslogtreecommitdiff
path: root/slirp/udp.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-02-29 19:14:23 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-03-13 14:05:49 +0100
commita68adc220603baffc355ecea8865b3ea9707ab00 (patch)
treef2f2c89ddcae603aff1cb0bd44ab169f4d06f4c4 /slirp/udp.h
parentf37343197708d90f119007ce5ecc2503be9c04c1 (diff)
downloadqemu-a68adc220603baffc355ecea8865b3ea9707ab00.zip
qemu-a68adc220603baffc355ecea8865b3ea9707ab00.tar.gz
qemu-a68adc220603baffc355ecea8865b3ea9707ab00.tar.bz2
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>
Diffstat (limited to 'slirp/udp.h')
-rw-r--r--slirp/udp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/udp.h b/slirp/udp.h
index 9b5c3cf..9bf31fe 100644
--- a/slirp/udp.h
+++ b/slirp/udp.h
@@ -74,6 +74,7 @@ struct udpiphdr {
struct mbuf;
void udp_init(Slirp *);
+void udp_cleanup(Slirp *);
void udp_input(register struct mbuf *, int);
int udp_output(struct socket *, struct mbuf *, struct sockaddr_in *);
int udp_attach(struct socket *);