diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-28 02:29:59 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-28 02:29:59 +0000 |
commit | 4f01035ff23b505e2feec470aee874c60cc74434 (patch) | |
tree | dc15ef53ae8354bb18f89f0325f999e4225023ff /vl.c | |
parent | 821f7e76100f71d9ad104be9d1e12835e201ce80 (diff) |
Fix tap device counting.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2884 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4229,6 +4229,7 @@ static int net_client_init(const char *str) char ifname[64]; char setup_script[1024]; int fd; + vlan->nb_host_devs++; if (get_param_value(buf, sizeof(buf), "fd", p) > 0) { fd = strtol(buf, NULL, 0); ret = -1; @@ -4241,7 +4242,6 @@ static int net_client_init(const char *str) if (get_param_value(setup_script, sizeof(setup_script), "script", p) == 0) { pstrcpy(setup_script, sizeof(setup_script), DEFAULT_NETWORK_SCRIPT); } - vlan->nb_host_devs++; ret = net_tap_init(vlan, ifname, setup_script); } } else |