mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-24 00:18:36 -07:00
-tun-fd option fix (Renzo Davoli)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@803 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3a1bc175ea
commit
d6b86f4d85
1 changed files with 1 additions and 0 deletions
1
vl.c
1
vl.c
|
|
@ -2078,6 +2078,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
const char *p;
|
||||
int fd;
|
||||
net_if_type = NET_IF_TUN;
|
||||
if (nb_tun_fds < MAX_NICS) {
|
||||
fd = strtol(optarg, (char **)&p, 0);
|
||||
if (*p != '\0') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue