Changeset 44204 in vbox for trunk/src/VBox
- Timestamp:
- Dec 25, 2012 4:30:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r41774 r44204 787 787 && g_VBoxNetFltSolarisStreamType != kIp4Stream) 788 788 { 789 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModOpen failed due to undefined VirtualBox open mode. Type=%d\n", g_VBoxNetFltSolarisStreamType)); 789 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModOpen failed due to undefined VirtualBox open mode. Type=%d\n", 790 g_VBoxNetFltSolarisStreamType)); 790 791 return ENOENT; 791 792 } … … 1124 1125 if (MBLKL(pMsg) < DL_NOTIFY_IND_SIZE) 1125 1126 { 1126 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: Invalid notification size; expected>=%d got=%d\n",1127 1127 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: Invalid notification size; expected>=%d" 1128 " got=%d\n", DL_NOTIFY_IND_SIZE, MBLKL(pMsg))); 1128 1129 break; 1129 1130 } … … 1142 1143 if (!cOffset || !cbAddr) 1143 1144 { 1144 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_PHYS_ADDR. Invalid offset/addr.\n")); 1145 LogRel((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_PHYS_ADDR." 1146 "Invalid offset/addr.\n")); 1145 1147 fSendUpstream = false; 1146 1148 break; … … 1467 1469 { 1468 1470 PVBOXNETFLTINS pThis = pParams->pThis; 1469 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, vboxnetflt_promisc_stream_t *); 1471 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, 1472 vboxnetflt_promisc_stream_t *); 1470 1473 if ( pPromiscStream 1471 1474 && pPromiscStream->Stream.pReadQueue) … … 1644 1647 else 1645 1648 { 1646 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenDev failed. pUser=%p fp=%p f_vnode=%p\n", pUser, pUser ? pUser->fp : NULL,1647 1649 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenDev failed. pUser=%p fp=%p f_vnode=%p\n", pUser, 1650 pUser ? pUser->fp : NULL, pUser && pUser->fp ? VNODE_FOR_FILE_T(pUser->fp) : NULL)); 1648 1651 } 1649 1652 … … 1722 1725 else /* Garbled reply */ 1723 1726 { 1724 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachReq ldi_getmsg succeeded, but invalid op. expected %d recvd %d\n",1725 DL_OK_ACK, AckPrim));1727 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachReq ldi_getmsg succeeded, but invalid op." 1728 " expected %d recvd %d\n", DL_OK_ACK, AckPrim)); 1726 1729 rc = VERR_INVALID_FUNCTION; 1727 1730 } … … 2382 2385 } 2383 2386 else 2384 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to find position. rc=%d rc2=%d\n", rc, rc2)); 2387 { 2388 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to find position. rc=%d rc2=%d\n", rc, 2389 rc2)); 2390 } 2385 2391 2386 2392 releasef(Ip4MuxFd); … … 2391 2397 } 2392 2398 else 2393 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to unlink upper stream rc=%d rc2=%d.\n", rc, rc2)); 2399 { 2400 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to unlink upper stream rc=%d rc2=%d.\n", rc, 2401 rc2)); 2402 } 2394 2403 } 2395 2404 else … … 2680 2689 if (Interval < 1 || Interval > 120) 2681 2690 { 2682 LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Invalid polling interval %d. Expected between 1 and 120 secs.\n",2683 2691 LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Invalid polling interval %d. Expected between" 2692 " 1 and 120 secs.\n", Interval)); 2684 2693 return VERR_INVALID_PARAMETER; 2685 2694 } … … 2693 2702 { 2694 2703 rc = RTTimerStart(pPromiscStream->pIp6Timer, 10 * (uint64_t)1000000000 /* 10 seconds to blastoff */); 2695 Log((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Ipv6 %d second timer begins firing in 10 seconds.\n", Interval)); 2704 Log((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Ipv6 %d second timer begins firing in 10 seconds.\n", 2705 Interval)); 2696 2706 } 2697 2707 else … … 3479 3489 else 3480 3490 { 3481 LogRel((DEVICE_NAME ":vboxNetFltSolarisRecv insufficient memory for creating VLAN stripped packet cbMsg=%u.\n",3482 3491 LogRel((DEVICE_NAME ":vboxNetFltSolarisRecv insufficient memory for creating VLAN stripped packet" 3492 " cbMsg=%u.\n", cbEthPrefix)); 3483 3493 if (fCopied) 3484 3494 freemsg(pMsg); … … 3696 3706 { 3697 3707 PVLANHEADER pVlanHdr = (PVLANHEADER)(pMsg->b_rptr + sizeof(RTNETETHERHDR) - sizeof(pEthHdr->EtherType)); 3698 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)))); 3708 LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)), 3709 VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data)))); 3699 3710 LogRel((DEVICE_NAME "%.*Rhxd\n", sizeof(VLANHEADER), pVlanHdr)); 3700 3711 } … … 3741 3752 * See @bugref{5262} as to why we need to do all this qtimeout/qwriter tricks. 3742 3753 */ 3743 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, vboxnetflt_promisc_stream_t *); 3754 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, 3755 vboxnetflt_promisc_stream_t *); 3744 3756 if ( pPromiscStream 3745 3757 && pPromiscStream->Stream.pReadQueue) … … 3749 3761 if (ASMAtomicReadPtr(&pPromiscStream->TimeoutId)) 3750 3762 quntimeout(WR(pPromiscStream->Stream.pReadQueue), pPromiscStream->TimeoutId); 3751 timeout_id_t TimeoutId = qtimeout(WR(pPromiscStream->Stream.pReadQueue), vboxNetFltSolarisPromiscReqWrap, pData, 1 /* ticks */); 3763 timeout_id_t TimeoutId = qtimeout(WR(pPromiscStream->Stream.pReadQueue), vboxNetFltSolarisPromiscReqWrap, 3764 pData, 1 /* ticks */); 3752 3765 ASMAtomicWritePtr(&pPromiscStream->TimeoutId, TimeoutId); 3753 3766 return; /* pData will be freed by vboxNetFltSolarisPromiscReqWrap() */ … … 3891 3904 if (fDst & INTNETTRUNKDIR_WIRE) 3892 3905 { 3893 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, vboxnetflt_promisc_stream_t *); 3906 vboxnetflt_promisc_stream_t *pPromiscStream = ASMAtomicUoReadPtrT(&pThis->u.s.pPromiscStream, 3907 vboxnetflt_promisc_stream_t *); 3894 3908 if (RT_LIKELY(pPromiscStream)) 3895 3909 {
Note:
See TracChangeset
for help on using the changeset viewer.