From 953e7f54e679cd40fff28e29189ed9e24bfb0758 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 5 Mar 2012 19:50:39 +0100 Subject: slirp: Prevent recursion of if_start if_start can be called recursively via if_encap. Avoid this as our scheme of dequeuing packets is not compatible with this. CC: Fabien Chouteau CC: Zhi Yong Wu CC: Stefan Weil Signed-off-by: Jan Kiszka --- slirp/slirp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'slirp/slirp.h') diff --git a/slirp/slirp.h b/slirp/slirp.h index 28a5c037e6..416d44a996 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -239,6 +239,7 @@ struct Slirp { struct mbuf if_fastq; /* fast queue (for interactive data) */ struct mbuf if_batchq; /* queue for non-interactive data */ struct mbuf *next_m; /* pointer to next mbuf to output */ + bool if_start_busy; /* avoid if_start recursion */ /* ip states */ struct ipq ipq; /* ip reass. queue */ -- cgit v1.2.3