slirp: Fix slow/choppy data flow.
This commit is contained in:
parent
79f50fa6bb
commit
5c117caaed
2 changed files with 2 additions and 0 deletions
|
@ -1651,6 +1651,7 @@ while (dev->handle) {
|
||||||
#ifdef HAVE_SLIRP_NETWORK
|
#ifdef HAVE_SLIRP_NETWORK
|
||||||
case ETH_API_NAT:
|
case ETH_API_NAT:
|
||||||
sim_slirp_dispatch ((SLIRP*)dev->handle);
|
sim_slirp_dispatch ((SLIRP*)dev->handle);
|
||||||
|
status = 1;
|
||||||
break;
|
break;
|
||||||
#endif /* HAVE_SLIRP_NETWORK */
|
#endif /* HAVE_SLIRP_NETWORK */
|
||||||
case ETH_API_UDP:
|
case ETH_API_UDP:
|
||||||
|
|
|
@ -320,6 +320,7 @@ struct redir_tcp_udp *rtmp;
|
||||||
|
|
||||||
if (slirp) {
|
if (slirp) {
|
||||||
g_free (slirp->args);
|
g_free (slirp->args);
|
||||||
|
g_free (slirp->tftp_path);
|
||||||
while ((rtmp = slirp->rtcp)) {
|
while ((rtmp = slirp->rtcp)) {
|
||||||
slirp_remove_hostfwd(slirp->slirp, rtmp->is_udp, rtmp->inaddr, rtmp->lport);
|
slirp_remove_hostfwd(slirp->slirp, rtmp->is_udp, rtmp->inaddr, rtmp->lport);
|
||||||
slirp->rtcp = rtmp->next;
|
slirp->rtcp = rtmp->next;
|
||||||
|
|
Loading…
Add table
Reference in a new issue