slirp: Fix slow/choppy data flow.

This commit is contained in:
Mark Pizzolato 2015-10-16 05:10:30 -07:00
parent 79f50fa6bb
commit 5c117caaed
2 changed files with 2 additions and 0 deletions

View file

@ -1651,6 +1651,7 @@ while (dev->handle) {
#ifdef HAVE_SLIRP_NETWORK
case ETH_API_NAT:
sim_slirp_dispatch ((SLIRP*)dev->handle);
status = 1;
break;
#endif /* HAVE_SLIRP_NETWORK */
case ETH_API_UDP:

View file

@ -320,6 +320,7 @@ struct redir_tcp_udp *rtmp;
if (slirp) {
g_free (slirp->args);
g_free (slirp->tftp_path);
while ((rtmp = slirp->rtcp)) {
slirp_remove_hostfwd(slirp->slirp, rtmp->is_udp, rtmp->inaddr, rtmp->lport);
slirp->rtcp = rtmp->next;