VirtualBox

Ignore:
Timestamp:
Feb 4, 2009 11:26:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42425
Message:

#2954 & #3569: Linux TAP driver is embedded to vboxnetflt. API, VBoxManage and VirtualBox now provide host-only network attachment on Linux.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
3 edited

Legend:

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

    r16485 r16509  
    361361                 "                            [-floppy disabled|empty|<uuid>|\n"
    362362                 "                                     <filename>|host:<drive>]\n"
     363#ifdef RT_OS_LINUX
     364                 "                            [-nic<1-N> none|null|nat|hostif|intnet|hostonly]\n"
     365#else /* !RT_OS_LINUX */
    363366                 "                            [-nic<1-N> none|null|nat|hostif|intnet]\n"
     367#endif /* !RT_OS_LINUX */
    364368                 "                            [-nictype<1-N> Am79C970A|Am79C973"
    365369#ifdef VBOX_WITH_E1000
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r16052 r16509  
    699699                        break;
    700700                    }
     701                    case NetworkAttachmentType_HostOnly:
     702                    {
     703                        if (details == VMINFO_MACHINEREADABLE)
     704                        {
     705                            strAttachment = "hostonly";
     706                        }
     707                        else
     708                            strAttachment = "Host-only Network";
     709                        break;
     710                    }
    701711                    default:
    702712                        strAttachment = "unknown";
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r16491 r16509  
    13881388                    CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1);
    13891389                }
     1390#ifdef RT_OS_LINUX
     1391                else if (strcmp(nics[n], "hostonly") == 0)
     1392                {
     1393                    CHECK_ERROR_RET(nic, COMSETTER(Enabled) (TRUE), 1);
     1394                    CHECK_ERROR_RET(nic, AttachToHostOnlyNetwork(), 1);
     1395                }
     1396#endif /* RT_OS_LINUX */
    13901397                else
    13911398                {
Note: See TracChangeset for help on using the changeset viewer.

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