VirtualBox

Changeset 4645 in vbox


Ignore:
Timestamp:
Sep 10, 2007 2:45:05 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24292
Message:

completed the -brdevN lanX code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r4644 r4645  
    628628            if (++curArg >= argc)
    629629                return SyntaxError("missing argument for %s!\n", pszArg);
    630             rc = RTStrToInt32Ex(argv[curArg], NULL, 0, &g_aNetDevs[i].iConnectTo);
    631             if (VBOX_FAILURE(rc))
    632                 return SyntaxError("bad tap file descriptor: %s (error %VRc)\n", argv[curArg], rc);
     630            if (    strncmp(argv[curArg], "lan", 3)
     631                ||  argv[curArg][3] < '0'
     632                ||  argv[curArg][3] >= '8'
     633                ||  argv[curArg][4])
     634                return SyntaxError("bad interface name '%s' specified with '%s'. Expected 'lan0', 'lan1' and similar.\n",
     635                                   argv[curArg], pszArg);
     636            g_aNetDevs[i].iConnectTo = argv[curArg][3] - '0';
    633637            g_aNetDevs[i].fHaveConnectTo = true;
    634638        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette