aboutsummaryrefslogtreecommitdiff
path: root/ip_icmp.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
commit1b4a91fe675c59d22e95b67b91603801e8bbe71f (patch)
treea64a380e0749009734d4bac8a6e1b14590d0324d /ip_icmp.h
parent0bca327c21750001cd21562743dc4d92eb00feb6 (diff)
downloadslirp-1b4a91fe675c59d22e95b67b91603801e8bbe71f.zip
slirp-1b4a91fe675c59d22e95b67b91603801e8bbe71f.tar.gz
slirp-1b4a91fe675c59d22e95b67b91603801e8bbe71f.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 'ip_icmp.h')
-rw-r--r--ip_icmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ip_icmp.h b/ip_icmp.h
index 7c006ff..4ce0a4e 100644
--- a/ip_icmp.h
+++ b/ip_icmp.h
@@ -154,6 +154,7 @@ struct icmp {
(type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
void icmp_init(Slirp *slirp);
+void icmp_cleanup(Slirp *slirp);
void icmp_input(struct mbuf *, int);
void icmp_error(struct mbuf *msrc, u_char type, u_char code, int minsize,
const char *message);