VirtualBox

Changeset 37766 in vbox for trunk


Ignore:
Timestamp:
Jul 4, 2011 2:15:25 PM (13 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetBow: don't create device nodes, some renaming.

Location:
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r37164 r37766  
    6262*******************************************************************************/
    6363/** The module name. */
    64 #define DEVICE_NAME                     "vboxflt"
     64#define DEVICE_NAME                     "vboxbow"
    6565/** The module descriptions as seen in 'modinfo'. */
    6666#define DEVICE_DESC_DRV                 "VirtualBox NetBow"
    6767/** The dynamically created VNIC name (hardcoded in NetIf-solaris.cpp).
    6868 *  @todo move this define into a common header. */
    69 #define VBOXFLT_VNIC_NAME               "vboxvnic"
     69#define VBOXBOW_VNIC_NAME               "vboxvnic"
    7070/** The VirtualBox VNIC template name (hardcoded in NetIf-solaris.cpp).
    7171 *   *  @todo move this define into a common header. */
    72 #define VBOXFLT_VNIC_TEMPLATE_NAME      "vboxvnic_template"
     72#define VBOXBOW_VNIC_TEMPLATE_NAME      "vboxvnic_template"
    7373/** Debugging switch for using symbols in kmdb */
    7474# define LOCAL                          static
     
    382382        case DDI_ATTACH:
    383383        {
    384             int instance = ddi_get_instance(pDip);
    385             int rc = ddi_create_priv_minor_node(pDip, DEVICE_NAME, S_IFCHR, instance, DDI_PSEUDO, 0, "none", "none", 0666);
    386             if (rc == DDI_SUCCESS)
    387             {
    388                 g_pVBoxNetFltSolarisDip = pDip;
    389                 ddi_report_dev(pDip);
    390                 return DDI_SUCCESS;
    391             }
    392             else
    393                 LogRel((DEVICE_NAME ":VBoxNetFltSolarisAttach failed to create minor node. rc=%d\n", rc));
    394             return DDI_FAILURE;
     384            g_pVBoxNetFltSolarisDip = pDip;
     385            return DDI_SUCCESS;
    395386        }
    396387
     
    424415        case DDI_DETACH:
    425416        {
    426             ddi_remove_minor_node(pDip, NULL);
    427417            return DDI_SUCCESS;
    428418        }
     
    10751065        return VERR_NO_MEMORY;
    10761066
    1077     RTStrPrintf(pVNIC->szName, sizeof(pVNIC->szName), "%s%RU64", VBOXFLT_VNIC_NAME, pThis->u.s.uInstance);
     1067    RTStrPrintf(pVNIC->szName, sizeof(pVNIC->szName), "%s%RU64", VBOXBOW_VNIC_NAME, pThis->u.s.uInstance);
    10781068
    10791069    /*
     
    12971287        {
    12981288            pThis->u.s.fIsVNIC = true;
    1299             if (RTStrNCmp(pThis->szName, VBOXFLT_VNIC_TEMPLATE_NAME, sizeof(VBOXFLT_VNIC_TEMPLATE_NAME) - 1) == 0)
     1289            if (RTStrNCmp(pThis->szName, VBOXBOW_VNIC_TEMPLATE_NAME, sizeof(VBOXBOW_VNIC_TEMPLATE_NAME) - 1) == 0)
    13001290            {
    13011291                LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC template '%s' detected.\n", pThis, pThis->szName));
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf

    r37328 r37766  
    11#
    2 # Solaris Host VBoxFlt (Crossbow) Configuration
     2# Solaris Host VBoxBow (Crossbow) Configuration
    33#
    44# Copyright (C) 2008-2010 Oracle Corporation
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