Changeset 44203 in vbox
- Timestamp:
- Dec 25, 2012 4:24:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r41702 r44203 632 632 { 633 633 PVLANHEADER pVlanHdr = (PVLANHEADER)(pMsg->b_rptr + sizeof(RTNETETHERHDR) - sizeof(pEthHdr->EtherType)); 634 LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data)))); 634 LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)), 635 VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data)))); 635 636 LogRel((DEVICE_NAME "%.*Rhxd\n", sizeof(VLANHEADER), pVlanHdr)); 636 637 } … … 644 645 LogRel((DEVICE_NAME ":IPv6 D=%.6Rhxs S=%.6Rhxs\n", pb, pb + 6)); 645 646 } 646 else if ( pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_1)647 else if ( pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_1) 647 648 || pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_2) 648 649 || pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_3)) … … 680 681 LOCAL void vboxNetFltSolarisRecv(void *pvData, mac_resource_handle_t hResource, mblk_t *pMsg, boolean_t fLoopback) 681 682 { 682 Log((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback, pMsg ? MBLKL(pMsg) : 0)); 683 Log((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback, 684 pMsg ? MBLKL(pMsg) : 0)); 683 685 684 686 PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvData; … … 755 757 { 756 758 ASMAtomicUoWriteBool(&pThis->fDisconnectedFromHost, fDisconnectedFromHost); 757 LogRel((DEVICE_NAME ":vboxNetFltSolarisLinkNotify link state change: new state=%s\n", fDisconnectedFromHost ? "DOWN" : "UP")); 759 LogRel((DEVICE_NAME ":vboxNetFltSolarisLinkNotify link state change: new state=%s\n", 760 fDisconnectedFromHost ? "DOWN" : "UP")); 758 761 } 759 762 break; … … 946 949 } 947 950 else 948 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to copy link name of underlying interface. rc=%d\n", rc)); 951 { 952 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to copy link name of underlying interface" 953 ". rc=%d\n", rc)); 954 } 949 955 } 950 956 else 951 957 { 952 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to get lower handle for VNIC template '%s'.\n", pThis->szName)); 958 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to get lower handle for VNIC template '%s'.\n", 959 pThis->szName)); 953 960 rc = VERR_INTNET_FLT_IF_FAILED; 954 961 } … … 1160 1167 if (RT_SUCCESS(rc)) 1161 1168 { 1162 Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC successfullycreated VNIC '%s' over '%s' with random mac %.6Rhxs\n",1169 Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC created VNIC '%s' over '%s' with random mac %.6Rhxs\n", 1163 1170 pVNIC->szName, pszLinkName, &GuestMac)); 1164 1171 *ppVNIC = pVNIC; … … 1456 1463 PVBOXNETFLTVNIC pVNIC = pvIfData; 1457 1464 AssertMsgReturnVoid(VALID_PTR(pVNIC) && pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC, 1458 ("Invalid pVNIC=%p magic=%#x (expected %#x)\n", pvIfData, VALID_PTR(pVNIC) ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC)); 1465 ("Invalid pVNIC=%p magic=%#x (expected %#x)\n", pvIfData, 1466 VALID_PTR(pVNIC) ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC)); 1459 1467 AssertMsgReturnVoid(pVNIC->hLinkId != DATALINK_INVALID_LINKID, 1460 1468 ("Invalid hLinkId pVNIC=%p magic=%#x\n", pVNIC, pVNIC->u32Magic)); … … 1506 1514 * Set the RX receive function. 1507 1515 * This shouldn't be necessary as vboxNetFltPortOsSetActive() will be invoked after this, but in the future, 1508 * if the guest NIC changes MAC address this may not be followed by a vboxNetFltPortOsSetActive() call, so set it here anyway. 1516 * if the guest NIC changes MAC address this may not be followed by a vboxNetFltPortOsSetActive() call, 1517 * so set it here anyway. 1509 1518 */ 1510 1519 mac_rx_set(pVNIC->hClient, vboxNetFltSolarisRecv, pThis); … … 1518 1527 } 1519 1528 else 1520 LogRel((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress failed to add primary unicast address. rc=%d Diag=%d\n", rc, MacDiag)); 1529 { 1530 LogRel((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress failed to add primary unicast address. rc=%d Diag=%d\n", rc, 1531 MacDiag)); 1532 } 1521 1533 } 1522 1534 else … … 1608 1620 } 1609 1621 else 1610 LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to get link id for '%s'. rc=%d\n", pThis->szName, rc)); 1622 { 1623 LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to get link id for '%s'. rc=%d\n", 1624 pThis->szName, rc)); 1625 } 1611 1626 } 1612 1627 else … … 1635 1650 PVBOXNETFLTVNIC pVNIC = pvIfData; 1636 1651 AssertMsgReturn(VALID_PTR(pVNIC) && pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC, 1637 ("Invalid pvIfData=%p magic=%#x (expected %#x)\n", pvIfData, pVNIC ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC),1638 VERR_INVALID_POINTER);1652 ("Invalid pvIfData=%p magic=%#x (expected %#x)\n", pvIfData, 1653 pVNIC ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC), VERR_INVALID_POINTER); 1639 1654 1640 1655 /*
Note:
See TracChangeset
for help on using the changeset viewer.