Commit d927637d authored by bellard's avatar bellard
Browse files

init dummy net if tun/tap network error


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@763 c046a42c-6fe2-441c-8c8c-71466251a162
parent 4f2ac237
......@@ -1323,7 +1323,7 @@ int qemu_loadvm(const char *filename)
}
for(;;) {
#if defined (DO_TB_FLUSH)
tb_flush();
tb_flush(global_env);
#endif
len = qemu_get_byte(f);
if (feof(f))
......@@ -2143,7 +2143,8 @@ int main(int argc, char **argv)
if (i < nb_tun_fds) {
net_fd_init(nd, tun_fds[i]);
} else {
net_tun_init(nd);
if (net_tun_init(nd) < 0)
net_dummy_init(nd);
}
break;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment