aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-26 19:44:57 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-26 19:44:57 +0000
commitd927637dca36c564a2911dc4bc0d7969b654cd0c (patch)
tree4f744a97251c67552fabe7b31c01f9bd313b8ed7 /vl.c
parent4f2ac237840677ffcb1b3ca30d04a4c2d360f7c7 (diff)
init dummy net if tun/tap network error
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@763 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 8206706f61..68ccbcad1e 100644
--- a/vl.c
+++ b/vl.c
@@ -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