Changeset 15205 in vbox
- Timestamp:
- Dec 9, 2008 9:41:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r15051 r15205 386 386 " [-gueststatisticsinterval <seconds>]\n" 387 387 ); 388 if (fLinux)389 {390 RTPrintf(" [-tapsetup<1-N> none|<application>]\n"391 " [-tapterminate<1-N> none|<application>]\n");392 }393 388 RTPrintf(" [-audio none|null"); 394 389 if (fWin) … … 1563 1558 std::vector <const char *> intnet (NetworkAdapterCount, 0); 1564 1559 std::vector <const char *> natnet (NetworkAdapterCount, 0); 1565 #ifdef RT_OS_LINUX1566 std::vector <char *> tapsetup (NetworkAdapterCount, 0);1567 std::vector <char *> tapterm (NetworkAdapterCount, 0);1568 #endif1569 1560 std::vector <char *> macs (NetworkAdapterCount, 0); 1570 1561 std::vector <char *> uarts_mode (SerialPortCount, 0); … … 1921 1912 i++; 1922 1913 } 1923 #ifdef RT_OS_LINUX1924 else if (strncmp(argv[i], "-tapsetup", 9) == 0)1925 {1926 unsigned n = parseNum(&argv[i][9], NetworkAdapterCount, "NIC");1927 if (!n)1928 return 1;1929 if (argc <= i + 1)1930 return errorArgument("Missing argument to '%s'", argv[i]);1931 tapsetup[n - 1] = argv[i + 1];1932 i++;1933 }1934 else if (strncmp(argv[i], "-tapterminate", 13) == 0)1935 {1936 unsigned n = parseNum(&argv[i][13], NetworkAdapterCount, "NIC");1937 if (!n)1938 return 1;1939 if (argc <= i + 1)1940 return errorArgument("Missing argument to '%s'", argv[i]);1941 tapterm[n - 1] = argv[i + 1];1942 i++;1943 }1944 #endif /* RT_OS_LINUX */1945 1914 else if (strncmp(argv[i], "-macaddress", 11) == 0) 1946 1915 { … … 2991 2960 CHECK_ERROR_RET(nic, COMSETTER(NATNetwork)(Bstr(natnet[n])), 1); 2992 2961 } 2993 #ifdef RT_OS_LINUX2994 /* the TAP setup application? */2995 if (tapsetup[n])2996 {2997 /* remove it? */2998 if (strcmp(tapsetup[n], "none") == 0)2999 {3000 CHECK_ERROR_RET(nic, COMSETTER(TAPSetupApplication)(NULL), 1);3001 }3002 else3003 {3004 CHECK_ERROR_RET(nic, COMSETTER(TAPSetupApplication)(Bstr(tapsetup[n])), 1);3005 }3006 }3007 3008 /* the TAP terminate application? */3009 if (tapterm[n])3010 {3011 /* remove it? */3012 if (strcmp(tapterm[n], "none") == 0)3013 {3014 CHECK_ERROR_RET(nic, COMSETTER(TAPTerminateApplication)(NULL), 1);3015 }3016 else3017 {3018 CHECK_ERROR_RET(nic, COMSETTER(TAPTerminateApplication)(Bstr(tapterm[n])), 1);3019 }3020 }3021 #endif /* RT_OS_LINUX */3022 3023 2962 } 3024 2963 if (FAILED(rc))
Note:
See TracChangeset
for help on using the changeset viewer.