- Timestamp:
- Jul 4, 2011 2:15:25 PM (13 years ago)
- 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 62 62 *******************************************************************************/ 63 63 /** The module name. */ 64 #define DEVICE_NAME "vbox flt"64 #define DEVICE_NAME "vboxbow" 65 65 /** The module descriptions as seen in 'modinfo'. */ 66 66 #define DEVICE_DESC_DRV "VirtualBox NetBow" 67 67 /** The dynamically created VNIC name (hardcoded in NetIf-solaris.cpp). 68 68 * @todo move this define into a common header. */ 69 #define VBOX FLT_VNIC_NAME "vboxvnic"69 #define VBOXBOW_VNIC_NAME "vboxvnic" 70 70 /** The VirtualBox VNIC template name (hardcoded in NetIf-solaris.cpp). 71 71 * * @todo move this define into a common header. */ 72 #define VBOX FLT_VNIC_TEMPLATE_NAME "vboxvnic_template"72 #define VBOXBOW_VNIC_TEMPLATE_NAME "vboxvnic_template" 73 73 /** Debugging switch for using symbols in kmdb */ 74 74 # define LOCAL static … … 382 382 case DDI_ATTACH: 383 383 { 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; 395 386 } 396 387 … … 424 415 case DDI_DETACH: 425 416 { 426 ddi_remove_minor_node(pDip, NULL);427 417 return DDI_SUCCESS; 428 418 } … … 1075 1065 return VERR_NO_MEMORY; 1076 1066 1077 RTStrPrintf(pVNIC->szName, sizeof(pVNIC->szName), "%s%RU64", VBOX FLT_VNIC_NAME, pThis->u.s.uInstance);1067 RTStrPrintf(pVNIC->szName, sizeof(pVNIC->szName), "%s%RU64", VBOXBOW_VNIC_NAME, pThis->u.s.uInstance); 1078 1068 1079 1069 /* … … 1297 1287 { 1298 1288 pThis->u.s.fIsVNIC = true; 1299 if (RTStrNCmp(pThis->szName, VBOX FLT_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) 1300 1290 { 1301 1291 LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC template '%s' detected.\n", pThis, pThis->szName)); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf
r37328 r37766 1 1 # 2 # Solaris Host VBox Flt(Crossbow) Configuration2 # Solaris Host VBoxBow (Crossbow) Configuration 3 3 # 4 4 # Copyright (C) 2008-2010 Oracle Corporation
Note:
See TracChangeset
for help on using the changeset viewer.