VirtualBox

Ignore:
Timestamp:
Sep 28, 2011 12:04:39 PM (13 years ago)
Author:
vboxsync
Message:

HostDrivers/solaris: LogFlow->Log for debug purposes.

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

Legend:

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

    r38736 r38895  
    2121#define LOG_GROUP LOG_GROUP_NET_FLT_DRV
    2222#ifdef DEBUG_ramshankar
     23# define LOG_ENABLED
    2324# define LOG_INSTANCE       RTLogRelDefaultInstance()
    2425#endif
     
    464465int _init(void)
    465466{
    466     LogFlowFunc((DEVICE_NAME ":_init\n"));
     467    LogFunc((DEVICE_NAME ":_init\n"));
    467468
    468469    /*
     
    541542{
    542543    int rc;
    543     LogFlowFunc((DEVICE_NAME ":_fini\n"));
     544    LogFunc((DEVICE_NAME ":_fini\n"));
    544545
    545546    /*
     
    577578int _info(struct modinfo *pModInfo)
    578579{
    579     LogFlowFunc((DEVICE_NAME ":_info\n"));
     580    LogFunc((DEVICE_NAME ":_info\n"));
    580581
    581582    int rc = mod_info(&g_VBoxNetFltSolarisModLinkage, pModInfo);
    582583
    583     LogFlow((DEVICE_NAME ":_info returns %d\n", rc));
     584    Log((DEVICE_NAME ":_info returns %d\n", rc));
    584585    return rc;
    585586}
     
    596597static int VBoxNetFltSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd)
    597598{
    598     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisAttach pDip=%p enmCmd=%d\n", pDip, enmCmd));
     599    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisAttach pDip=%p enmCmd=%d\n", pDip, enmCmd));
    599600
    600601    switch (enmCmd)
     
    613614                int Interval = ddi_getprop(DDI_DEV_T_ANY, pDip, DDI_PROP_DONTPASS, VBOXNETFLT_IP6POLLINTERVAL, -1 /* default */);
    614615                if (Interval == -1)
    615                     LogFlow((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: no poll interval property specified. Skipping Ipv6 polling.\n"));
     616                    Log((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: no poll interval property specified. Skipping Ipv6 polling.\n"));
    616617                else if (Interval < 1 || Interval > 120)
    617618                {
     
    654655static int VBoxNetFltSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd)
    655656{
    656     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisDetach pDip=%p enmCmd=%d\n", pDip, enmCmd));
     657    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisDetach pDip=%p enmCmd=%d\n", pDip, enmCmd));
    657658
    658659    switch (enmCmd)
     
    690691static int VBoxNetFltSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pvArg, void **ppResult)
    691692{
    692     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisGetInfo pDip=%p enmCmd=%d pArg=%p instance=%d\n", pDip, enmCmd,
     693    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisGetInfo pDip=%p enmCmd=%d pArg=%p instance=%d\n", pDip, enmCmd,
    693694                getminor((dev_t)pvArg)));
    694695
     
    728729    Assert(pQueue);
    729730
    730     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisModOpen pQueue=%p pDev=%p fOpenMode=%d fStreamMode=%d\n", pQueue, pDev,
     731    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisModOpen pQueue=%p pDev=%p fOpenMode=%d fStreamMode=%d\n", pQueue, pDev,
    731732            fOpenMode, fStreamMode));
    732733
     
    911912    NOREF(fOpenMode);
    912913
    913     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModOpen returns 0, DevMinor=%d pQueue=%p\n", DevMinor, pStream->pReadQueue));
     914    Log((DEVICE_NAME ":VBoxNetFltSolarisModOpen returns 0, DevMinor=%d pQueue=%p\n", DevMinor, pStream->pReadQueue));
    914915
    915916    return 0;
     
    930931    Assert(pQueue);
    931932
    932     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisModClose pQueue=%p fOpenMode=%d\n", pQueue, fOpenMode));
     933    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisModClose pQueue=%p fOpenMode=%d\n", pQueue, fOpenMode));
    933934
    934935    vboxnetflt_stream_t *pStream = NULL;
     
    10531054        return 0;
    10541055
    1055     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisModReadPut pQueue=%p pMsg=%p\n", pQueue, pMsg));
     1056    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisModReadPut pQueue=%p pMsg=%p\n", pQueue, pMsg));
    10561057
    10571058    bool fSendUpstream = true;
     
    10871088                case M_DATA:
    10881089                {
    1089                     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut M_DATA\n"));
     1090                    Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut M_DATA\n"));
    10901091
    10911092                    if (   fActive
     
    11031104                    t_uscalar_t Prim = pPrim->dl_primitive;
    11041105
    1105                     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO %d\n", Prim));
     1106                    Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO %d\n", Prim));
    11061107                    switch (Prim)
    11071108                    {
     
    11341135
    11351136                                    bcopy(pMsg->b_rptr + cOffset, &pThis->u.s.MacAddr, sizeof(pThis->u.s.MacAddr));
    1136                                     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_PHYS_ADDR. New Mac=%.*Rhxs\n",
     1137                                    Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_PHYS_ADDR. New Mac=%.*Rhxs\n",
    11371138                                             sizeof(pThis->u.s.MacAddr), &pThis->u.s.MacAddr));
    11381139                                    break;
     
    11421143                                {
    11431144                                    if (ASMAtomicXchgBool(&pThis->fDisconnectedFromHost, false))
    1144                                         LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_LINK_UP.\n"));
     1145                                        Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_LINK_UP.\n"));
    11451146                                    break;
    11461147                                }
     
    11491150                                {
    11501151                                    if (!ASMAtomicXchgBool(&pThis->fDisconnectedFromHost, true))
    1151                                         LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_LINK_DOWN.\n"));
     1152                                        Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_NOTE_LINK_DOWN.\n"));
    11521153                                    break;
    11531154                                }
     
    11611162                             * Swallow our bind request acknowledgement.
    11621163                             */
    1163                             LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_BIND_ACK. Bound to requested SAP!\n"));
     1164                            Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: DL_BIND_ACK. Bound to requested SAP!\n"));
    11641165                            break;
    11651166                        }
     
    11821183                            if (pOkAck->dl_correct_primitive == DL_PROMISCON_REQ)
    11831184                            {
    1184                                 LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO: DL_OK_ACK: fPromisc is ON.\n"));
     1185                                Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO: DL_OK_ACK: fPromisc is ON.\n"));
    11851186                                pPromiscStream->fPromisc = true;
    11861187                            }
    11871188                            else if (pOkAck->dl_correct_primitive == DL_PROMISCOFF_REQ)
    11881189                            {
    1189                                 LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO: DL_OK_ACK: fPromisc is OFF.\n"));
     1190                                Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_PCPROTO: DL_OK_ACK: fPromisc is OFF.\n"));
    11901191                                pPromiscStream->fPromisc = false;
    11911192                            }
     
    12051206                    {
    12061207                        pPromiscStream->fRawMode = true;
    1207                         LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: Mode acknowledgement. RawMode is %s\n",
     1208                        Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: Mode acknowledgement. RawMode is %s\n",
    12081209                                pPromiscStream->fRawMode ? "ON" : "OFF"));
    12091210                    }
     
    12311232                     * We must support flushing queues.
    12321233                     */
    1233                     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_FLUSH\n"));
     1234                    Log((DEVICE_NAME ":VBoxNetFltSolarisModReadPut: M_FLUSH\n"));
    12341235                    if (*pMsg->b_rptr & FLUSHR)
    12351236                        flushq(pQueue, FLUSHALL);
     
    12761277static int VBoxNetFltSolarisModWritePut(queue_t *pQueue, mblk_t *pMsg)
    12771278{
    1278     LogFlowFunc((DEVICE_NAME ":VBoxNetFltSolarisModWritePut pQueue=%p pMsg=%p\n", pQueue, pMsg));
     1279    LogFunc((DEVICE_NAME ":VBoxNetFltSolarisModWritePut pQueue=%p pMsg=%p\n", pQueue, pMsg));
    12791280
    12801281    putnext(pQueue, pMsg);
     
    12911292static int vboxNetFltSolarisSetRawMode(vboxnetflt_promisc_stream_t *pPromiscStream)
    12921293{
    1293     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisSetRawMode pPromiscStream=%p\n", pPromiscStream));
     1294    LogFunc((DEVICE_NAME ":vboxNetFltSolarisSetRawMode pPromiscStream=%p\n", pPromiscStream));
    12941295
    12951296    mblk_t *pRawMsg = NULL;
     
    13201321static int vboxNetFltSolarisSetFastMode(queue_t *pQueue)
    13211322{
    1322     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisSetFastMode pQueue=%p\n", pQueue));
     1323    LogFunc((DEVICE_NAME ":vboxNetFltSolarisSetFastMode pQueue=%p\n", pQueue));
    13231324
    13241325    mblk_t *pFastMsg = mkiocb(DL_IOC_HDR_INFO);
     
    13691370static int vboxNetFltSolarisPromiscReq(queue_t *pQueue, bool fPromisc)
    13701371{
    1371     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisPromiscReq pQueue=%p fPromisc=%d\n", pQueue, fPromisc));
     1372    LogFunc((DEVICE_NAME ":vboxNetFltSolarisPromiscReq pQueue=%p fPromisc=%d\n", pQueue, fPromisc));
    13721373
    13731374    t_uscalar_t Cmd;
     
    14961497static int vboxNetFltSolarisPhysAddrReq(queue_t *pQueue)
    14971498{
    1498     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisPhysAddrReq pQueue=%p\n", pQueue));
     1499    LogFunc((DEVICE_NAME ":vboxNetFltSolarisPhysAddrReq pQueue=%p\n", pQueue));
    14991500
    15001501    t_uscalar_t Cmd = DL_PHYS_ADDR_REQ;
     
    15211522static void vboxNetFltSolarisCachePhysAddr(PVBOXNETFLTINS pThis, mblk_t *pMsg)
    15221523{
    1523     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisCachePhysAddr pThis=%p pMsg=%p\n", pThis, pMsg));
     1524    LogFunc((DEVICE_NAME ":vboxNetFltSolarisCachePhysAddr pThis=%p pMsg=%p\n", pThis, pMsg));
    15241525
    15251526    AssertCompile(sizeof(RTMAC) == ETHERADDRL);
     
    15291530        bcopy(pMsg->b_rptr + pPhysAddrAck->dl_addr_offset, &pThis->u.s.MacAddr, sizeof(pThis->u.s.MacAddr));
    15301531
    1531         LogFlow((DEVICE_NAME ":vboxNetFltSolarisCachePhysAddr: DL_PHYS_ADDR_ACK: Mac=%.*Rhxs\n",
     1532        Log((DEVICE_NAME ":vboxNetFltSolarisCachePhysAddr: DL_PHYS_ADDR_ACK: Mac=%.*Rhxs\n",
    15321533                 sizeof(pThis->u.s.MacAddr), &pThis->u.s.MacAddr));
    15331534
     
    15571558static int vboxNetFltSolarisBindReq(queue_t *pQueue, int SAP)
    15581559{
    1559     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisBindReq SAP=%d\n", SAP));
     1560    LogFunc((DEVICE_NAME ":vboxNetFltSolarisBindReq SAP=%d\n", SAP));
    15601561
    15611562    mblk_t *pBindMsg = mexchange(NULL, NULL, DL_BIND_REQ_SIZE, M_PROTO, DL_BIND_REQ);
     
    15831584static int vboxNetFltSolarisNotifyReq(queue_t *pQueue)
    15841585{
    1585     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisNotifyReq\n"));
     1586    LogFunc((DEVICE_NAME ":vboxNetFltSolarisNotifyReq\n"));
    15861587
    15871588    mblk_t *pNotifyMsg = mexchange(NULL, NULL, DL_NOTIFY_REQ_SIZE, M_PROTO, DL_NOTIFY_REQ);
     
    18181819static int vboxNetFltSolarisRelinkIp4(vnode_t *pVNode, struct lifreq *pInterface, int IpMuxFd, int ArpMuxFd)
    18191820{
    1820     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisRelinkIp4: pVNode=%p pInterface=%p IpMuxFd=%d ArpMuxFd=%d\n", pVNode,
     1821    LogFunc((DEVICE_NAME ":vboxNetFltSolarisRelinkIp4: pVNode=%p pInterface=%p IpMuxFd=%d ArpMuxFd=%d\n", pVNode,
    18211822            pInterface, IpMuxFd, ArpMuxFd));
    18221823
     
    18531854static int vboxNetFltSolarisRelinkIp6(vnode_t *pVNode, struct lifreq *pInterface, int Ip6MuxFd)
    18541855{
    1855     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisRelinkIp6: pVNode=%p pInterface=%p Ip6MuxFd=%d\n", pVNode, pInterface, Ip6MuxFd));
     1856    LogFunc((DEVICE_NAME ":vboxNetFltSolarisRelinkIp6: pVNode=%p pInterface=%p Ip6MuxFd=%d\n", pVNode, pInterface, Ip6MuxFd));
    18561857
    18571858    int NewIp6MuxId;
     
    18821883static int vboxNetFltSolarisDetermineModPos(bool fAttach, vnode_t *pVNode, int *pModPos)
    18831884{
    1884     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: fAttach=%d pVNode=%p pModPos=%p\n", fAttach, pVNode, pModPos));
     1885    LogFunc((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: fAttach=%d pVNode=%p pModPos=%p\n", fAttach, pVNode, pModPos));
    18851886
    18861887    int cMod;
     
    18981899         * the host driver.
    18991900         */
    1900         LogFlow((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: cMod=%d\n", cMod));
     1901        Log((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: cMod=%d\n", cMod));
    19011902        if (fAttach)
    19021903        {
     
    19141915        if (RT_UNLIKELY(!StrList.sl_modlist))
    19151916        {
    1916             LogFlow((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: failed to alloc memory for StrList.\n"));
     1917            Log((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: failed to alloc memory for StrList.\n"));
    19171918            return VERR_NO_MEMORY;
    19181919        }
     
    19321933                if (!strcmp(DEVICE_NAME, StrList.sl_modlist[i].l_name))
    19331934                {
    1934                     LogFlow((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: Success! Found %s at %d.\n", DEVICE_NAME, i));
     1935                    Log((DEVICE_NAME ":vboxNetFltSolarisDetermineModPos: Success! Found %s at %d.\n", DEVICE_NAME, i));
    19351936                    *pModPos = i;
    19361937                    RTMemFree(StrList.sl_modlist);
     
    21302131static void vboxNetFltSolarisCloseStream(PVBOXNETFLTINS pThis)
    21312132{
    2132     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisCloseStream pThis=%p\n"));
     2133    LogFunc((DEVICE_NAME ":vboxNetFltSolarisCloseStream pThis=%p\n"));
    21332134
    21342135    if (pThis->u.s.hIface)
     
    21492150static int vboxNetFltSolarisAttachIp4(PVBOXNETFLTINS pThis, bool fAttach)
    21502151{
    2151     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisAttachIp4 pThis=%p fAttach=%d\n", pThis, fAttach));
     2152    LogFunc((DEVICE_NAME ":vboxNetFltSolarisAttachIp4 pThis=%p fAttach=%d\n", pThis, fAttach));
    21522153
    21532154    /*
     
    23332334                                            releasef(ArpMuxFd);
    23342335
    2335                                             LogFlow((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: Success! %s %s@(IPv4:%d Arp:%d) "
     2336                                            Log((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: Success! %s %s@(IPv4:%d Arp:%d) "
    23362337                                                    "%s interface %s\n", fAttach ? "Injected" : "Ejected", StrMod.mod_name,
    23372338                                                    StrMod.pos, ArpStrMod.pos, fAttach ? "to" : "from", pThis->szName));
     
    24162417static int vboxNetFltSolarisAttachIp6(PVBOXNETFLTINS pThis, bool fAttach)
    24172418{
    2418     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisAttachIp6 pThis=%p fAttach=%d\n", pThis, fAttach));
     2419    LogFunc((DEVICE_NAME ":vboxNetFltSolarisAttachIp6 pThis=%p fAttach=%d\n", pThis, fAttach));
    24192420
    24202421    /*
     
    25452546                                        releasef(Ip6MuxFd);
    25462547
    2547                                         LogFlow((DEVICE_NAME ":vboxNetFltSolarisAttachIp6: Success! %s %s@(IPv6:%d) "
     2548                                        Log((DEVICE_NAME ":vboxNetFltSolarisAttachIp6: Success! %s %s@(IPv6:%d) "
    25482549                                                "%s interface %s\n", fAttach ? "Injected" : "Ejected", StrMod.mod_name,
    25492550                                                StrMod.pos, fAttach ? "to" : "from", pThis->szName));
     
    25932594    else
    25942595    {
    2595         LogFlow((DEVICE_NAME ":vboxNetFltSolarisAttachIp6: failed to get IPv6 flags.\n", pThis->szName));
     2596        Log((DEVICE_NAME ":vboxNetFltSolarisAttachIp6: failed to get IPv6 flags.\n", pThis->szName));
    25962597        rc = VERR_INTNET_FLT_IF_NOT_FOUND;
    25972598    }
     
    26132614static void vboxNetFltSolarispIp6Timer(PRTTIMER pTimer, void *pvData, uint64_t iTick)
    26142615{
    2615     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarispIp6Timer pTimer=%p pvData=%p\n", pTimer, pvData));
     2616    LogFunc((DEVICE_NAME ":vboxNetFltSolarispIp6Timer pTimer=%p pvData=%p\n", pTimer, pvData));
    26162617
    26172618    PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvData;
     
    26522653static int vboxNetFltSolarisSetupIp6Polling(PVBOXNETFLTINS pThis)
    26532654{
    2654     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling pThis=%p\n", pThis));
     2655    LogFunc((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling pThis=%p\n", pThis));
    26552656
    26562657    int rc = VERR_GENERAL_FAILURE;
     
    26792680            {
    26802681                rc = RTTimerStart(pPromiscStream->pIp6Timer, 10 * (uint64_t)1000000000 /* 10 seconds to blastoff */);
    2681                 LogFlow((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Ipv6 %d second timer begins firing in 10 seconds.\n", Interval));
     2682                Log((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Ipv6 %d second timer begins firing in 10 seconds.\n", Interval));
    26822683            }
    26832684            else
     
    27042705static int vboxNetFltSolarisDetachFromInterface(PVBOXNETFLTINS pThis)
    27052706{
    2706     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisDetachFromInterface pThis=%p\n", pThis));
     2707    LogFunc((DEVICE_NAME ":vboxNetFltSolarisDetachFromInterface pThis=%p\n", pThis));
    27072708
    27082709    ASMAtomicWriteBool(&pThis->fDisconnectedFromHost, true);
     
    27372738static int vboxNetFltSolarisAttachToInterface(PVBOXNETFLTINS pThis)
    27382739{
    2739     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisAttachToInterface pThis=%p\n", pThis));
     2740    LogFunc((DEVICE_NAME ":vboxNetFltSolarisAttachToInterface pThis=%p\n", pThis));
    27402741
    27412742    /*
     
    28152816static mblk_t *vboxNetFltSolarisMBlkFromSG(PVBOXNETFLTINS pThis, PINTNETSG pSG, uint32_t fDst)
    28162817{
    2817     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisMBlkFromSG pThis=%p pSG=%p\n", pThis, pSG));
     2818    LogFunc((DEVICE_NAME ":vboxNetFltSolarisMBlkFromSG pThis=%p pSG=%p\n", pThis, pSG));
    28182819
    28192820    mblk_t *pMsg = allocb(pSG->cbTotal, BPRI_MED);
     
    28792880static int vboxNetFltSolarisMBlkToSG(PVBOXNETFLTINS pThis, mblk_t *pMsg, PINTNETSG pSG, unsigned cSegs, uint32_t fSrc)
    28802881{
    2881     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pThis=%p pMsg=%p pSG=%p cSegs=%d\n", pThis, pMsg, pSG, cSegs));
     2882    LogFunc((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pThis=%p pMsg=%p pSG=%p cSegs=%d\n", pThis, pMsg, pSG, cSegs));
    28822883
    28832884    /*
     
    29062907    if (pSG->cbTotal < 60 && (fSrc & INTNETTRUNKDIR_HOST))
    29072908    {
    2908         LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pulling up to length.\n"));
     2909        Log((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pulling up to length.\n"));
    29092910
    29102911        static uint8_t const s_abZero[128] = {0};
     
    29182919#endif
    29192920
    2920     LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG iSeg=%d pSG->cbTotal=%d msgdsize=%d\n", iSeg, pSG->cbTotal, msgdsize(pMsg)));
     2921    Log((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG iSeg=%d pSG->cbTotal=%d msgdsize=%d\n", iSeg, pSG->cbTotal, msgdsize(pMsg)));
    29212922    return VINF_SUCCESS;
    29222923}
     
    29362937static int vboxNetFltSolarisRawToUnitData(mblk_t *pMsg, mblk_t **ppDlpiMsg)
    29372938{
    2938     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisRawToUnitData pMsg=%p\n", pMsg));
     2939    LogFunc((DEVICE_NAME ":vboxNetFltSolarisRawToUnitData pMsg=%p\n", pMsg));
    29392940
    29402941    if (DB_TYPE(pMsg) != M_DATA)
     
    29882989static int vboxNetFltSolarisUnitDataToRaw(PVBOXNETFLTINS pThis, mblk_t *pMsg, mblk_t **ppRawMsg)
    29892990{
    2990     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisUnitDataToRaw pMsg=%p\n", pMsg));
     2991    LogFunc((DEVICE_NAME ":vboxNetFltSolarisUnitDataToRaw pMsg=%p\n", pMsg));
    29912992
    29922993    if (   !pMsg->b_cont
     
    31073108    Assert(pPromiscStream);
    31083109
    3109     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback pThis=%p pPromiscStream=%p pMsg=%p\n", pThis, pPromiscStream, pMsg));
     3110    LogFunc((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback pThis=%p pPromiscStream=%p pMsg=%p\n", pThis, pPromiscStream, pMsg));
    31103111
    31113112    if (RT_UNLIKELY(pMsg->b_cont))
     
    31483149                pPromiscStream->cLoopback++;
    31493150
    3150                 LogFlow((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback initialized head. checksum=%u.\n",
     3151                Log((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback initialized head. checksum=%u.\n",
    31513152                        pPromiscStream->pHead->Checksum));
    31523153                break;
     
    31583159                vboxNetFltSolarisInitPacketId(pCur, pMsg);
    31593160
    3160                 LogFlow((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback re-used head checksum=%u cLoopback=%d.\n",
     3161                Log((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback re-used head checksum=%u cLoopback=%d.\n",
    31613162                        pCur->Checksum, pPromiscStream->cLoopback));
    31623163                break;
     
    31773178                pPromiscStream->cLoopback++;
    31783179
    3179                 LogFlow((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback added head checksum=%u cLoopback=%d.\n", pCur->Checksum,
     3180                Log((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback added head checksum=%u cLoopback=%d.\n", pCur->Checksum,
    31803181                        pPromiscStream->cLoopback));
    31813182                break;
     
    32103211
    32113212        vboxNetFltSolarisInitPacketId(pCur, pMsg);
    3212         LogFlow((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback recycled tail!! checksum=%u cLoopback=%d\n", pCur->Checksum,
     3213        Log((DEVICE_NAME ":vboxNetFltSolarisQueueLoopback recycled tail!! checksum=%u cLoopback=%d\n", pCur->Checksum,
    32133214                pPromiscStream->cLoopback));
    32143215    }
     
    32353236    Assert(DB_TYPE(pMsg) == M_DATA);
    32363237
    3237     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk pThis=%p pMsg=%p\n", pThis, pMsg));
     3238    LogFunc((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk pThis=%p pMsg=%p\n", pThis, pMsg));
    32383239
    32393240    if (pMsg->b_cont)
     
    32983299        fIsOurPacket = true;
    32993300
    3300         LogFlow((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk found packet %p Checksum=%u cLoopback=%d\n", pMsg, Checksum,
     3301        Log((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk found packet %p Checksum=%u cLoopback=%d\n", pMsg, Checksum,
    33013302                    pPromiscStream->cLoopback));
    33023303        break;
    33033304    }
    33043305
    3305     LogFlow((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk returns %d.\n", fIsOurPacket));
     3306    Log((DEVICE_NAME ":vboxNetFltSolarisIsOurMBlk returns %d.\n", fIsOurPacket));
    33063307    mutex_exit(&pThis->u.s.hMtx);
    33073308    return fIsOurPacket;
     
    33353336static int vboxNetFltSolarisRecv(PVBOXNETFLTINS pThis, vboxnetflt_stream_t *pStream, queue_t *pQueue, mblk_t *pMsg)
    33363337{
    3337     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisRecv pThis=%p pMsg=%p\n", pThis, pMsg));
     3338    LogFunc((DEVICE_NAME ":vboxNetFltSolarisRecv pThis=%p pMsg=%p\n", pThis, pMsg));
    33383339
    33393340    AssertCompile(sizeof(struct ether_header) == sizeof(RTNETETHERHDR));
     
    33773378    if (vboxNetFltSolarisIsOurMBlk(pThis, pPromiscStream, pMsg))
    33783379    {
    3379         LogFlow((DEVICE_NAME ":Avoiding packet loopback.\n"));
     3380        Log((DEVICE_NAME ":Avoiding packet loopback.\n"));
    33803381        return VINF_SUCCESS;
    33813382    }
     
    34353436
    34363437                PVLANHEADER pVlanHdr = (PVLANHEADER)(pMsg->b_rptr + sizeof(RTNETETHERHDR) - sizeof(pEthHdr->EtherType));
    3437                 LogFlow((DEVICE_NAME ":Recv VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)),
     3438                Log((DEVICE_NAME ":Recv VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)),
    34383439                            VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data))));
    34393440                if (   VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)) > 0
     
    34613462                        pStrippedMsg->b_cont = pMsg;
    34623463                        pMsg = pStrippedMsg;
    3463                         LogFlow((DEVICE_NAME ":Stripped VLAN tag.\n"));
     3464                        Log((DEVICE_NAME ":Stripped VLAN tag.\n"));
    34643465                    }
    34653466                    else
     
    35223523static mblk_t *vboxNetFltSolarisFixChecksums(mblk_t *pMsg)
    35233524{
    3524     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisFixChecksums pMsg=%p\n"));
     3525    LogFunc((DEVICE_NAME ":vboxNetFltSolarisFixChecksums pMsg=%p\n"));
    35253526
    35263527    Assert(DB_TYPE(pMsg) == M_DATA);
     
    35423543        if (pMsg->b_cont)
    35433544        {
    3544             LogFlow((DEVICE_NAME ":Chained mblk_t.\n"));
     3545            Log((DEVICE_NAME ":Chained mblk_t.\n"));
    35453546
    35463547            /*
     
    35513552            size_t cbFullMsg = msgdsize(pMsg);
    35523553            mblk_t *pFullMsg = allocb(cbFullMsg, BPRI_MED);
    3553             LogFlow((DEVICE_NAME ":msgdsize returns %d\n", cbFullMsg));
     3554            Log((DEVICE_NAME ":msgdsize returns %d\n", cbFullMsg));
    35543555            if (RT_UNLIKELY(!pFullMsg))
    35553556            {
     
    35963597                    pTcpHdr->th_sum = TcpChecksum;
    35973598                    fChecksumAdjusted = true;
    3598                     LogFlow((DEVICE_NAME ":fixed TCP checksum.\n"));
     3599                    Log((DEVICE_NAME ":fixed TCP checksum.\n"));
    35993600                }
    36003601            }
     
    36083609                    pUdpHdr->uh_sum = UdpChecksum;
    36093610                    fChecksumAdjusted = true;
    3610                     LogFlow((DEVICE_NAME ":Fixed UDP checksum."));
     3611                    Log((DEVICE_NAME ":Fixed UDP checksum."));
    36113612                }
    36123613            }
     
    36493650static void vboxNetFltSolarisAnalyzeMBlk(mblk_t *pMsg)
    36503651{
    3651     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisAnalyzeMBlk pMsg=%p\n", pMsg));
     3652    LogFunc((DEVICE_NAME ":vboxNetFltSolarisAnalyzeMBlk pMsg=%p\n", pMsg));
    36523653
    36533654    PCRTNETETHERHDR pEthHdr = (PCRTNETETHERHDR)pMsg->b_rptr;
     
    36763677        else
    36773678        {
    3678             LogFlow((DEVICE_NAME ":Chained IP packet. Skipping validity check.\n"));
     3679            Log((DEVICE_NAME ":Chained IP packet. Skipping validity check.\n"));
    36793680        }
    36803681    }
     
    37043705        LogRel((DEVICE_NAME ":Unknown EtherType=%x D=%.6Rhxs S=%.6Rhxs\n", RT_H2BE_U16(pEthHdr->EtherType), &pEthHdr->DstMac,
    37053706                    &pEthHdr->SrcMac));
    3706         /* LogFlow((DEVICE_NAME ":%.*Rhxd\n", MBLKL(pMsg), pMsg->b_rptr)); */
     3707        /* Log((DEVICE_NAME ":%.*Rhxd\n", MBLKL(pMsg), pMsg->b_rptr)); */
    37073708    }
    37083709}
     
    37163717void vboxNetFltPortOsSetActive(PVBOXNETFLTINS pThis, bool fActive)
    37173718{
    3718     LogFlowFunc((DEVICE_NAME ":vboxNetFltPortOsSetActive pThis=%p fActive=%d\n", pThis, fActive));
     3719    LogFunc((DEVICE_NAME ":vboxNetFltPortOsSetActive pThis=%p fActive=%d\n", pThis, fActive));
    37193720
    37203721    /*
     
    37503751int vboxNetFltOsDisconnectIt(PVBOXNETFLTINS pThis)
    37513752{
    3752     LogFlowFunc((DEVICE_NAME ":vboxNetFltOsDisconnectIt pThis=%p\n", pThis));
     3753    LogFunc((DEVICE_NAME ":vboxNetFltOsDisconnectIt pThis=%p\n", pThis));
    37533754
    37543755    vboxNetFltSolarisDetachFromInterface(pThis);
     
    37673768void vboxNetFltOsDeleteInstance(PVBOXNETFLTINS pThis)
    37683769{
    3769     LogFlowFunc((DEVICE_NAME ":vboxNetFltOsDeleteInstance pThis=%p\n", pThis));
     3770    LogFunc((DEVICE_NAME ":vboxNetFltOsDeleteInstance pThis=%p\n", pThis));
    37703771
    37713772    mutex_destroy(&pThis->u.s.hMtx);
     
    37843785int vboxNetFltOsInitInstance(PVBOXNETFLTINS pThis, void *pvContext)
    37853786{
    3786     LogFlowFunc((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p\n"));
     3787    LogFunc((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p\n"));
    37873788
    37883789    /*
     
    38723873{
    38733874    NOREF(pvIfData);
    3874     LogFlowFunc((DEVICE_NAME ":vboxNetFltPortOsXmit pThis=%p pSG=%p fDst=%d\n", pThis, pSG, fDst));
     3875    LogFunc((DEVICE_NAME ":vboxNetFltPortOsXmit pThis=%p pSG=%p fDst=%d\n", pThis, pSG, fDst));
    38753876
    38763877    int rc = VINF_SUCCESS;
     
    38833884            if (RT_LIKELY(pMsg))
    38843885            {
    3885                 LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_WIRE\n"));
     3886                Log((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_WIRE\n"));
    38863887
    38873888                vboxNetFltSolarisQueueLoopback(pThis, pPromiscStream, pMsg);
     
    39193920            if (pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_ARP))
    39203921            {
    3921                 LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST ARP\n"));
     3922                Log((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST ARP\n"));
    39223923
    39233924                vboxnetflt_stream_t *pArpStream = ASMAtomicUoReadPtrT(&pThis->u.s.pArpStream, vboxnetflt_stream_t *);
     
    39553956                      * Send messages up IPv6 stream.
    39563957                      */
    3957                      LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST IPv6\n"));
     3958                     Log((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST IPv6\n"));
    39583959
    39593960                     pMsg->b_rptr += sizeof(RTNETETHERHDR);
     
    39663967                     * Send messages up IPv4 stream.
    39673968                     */
    3968                     LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST IPv4\n"));
     3969                    Log((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST IPv4\n"));
    39693970
    39703971                    pMsg->b_rptr += sizeof(RTNETETHERHDR);
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r38736 r38895  
    2121#define LOG_GROUP LOG_GROUP_NET_FLT_DRV
    2222#ifdef DEBUG_ramshankar
     23# define LOG_ENABLED
    2324# define LOG_INSTANCE       RTLogRelDefaultInstance()
    2425#endif
     
    260261LOCAL inline int vboxNetFltSolarisGetLinkId(const char *pszMacName, datalink_id_t *pLinkId);
    261262
    262 
    263263/**
    264264 * Kernel entry points
     
    266266int _init(void)
    267267{
    268     LogFlow((DEVICE_NAME ":_init\n"));
     268    Log((DEVICE_NAME ":_init\n"));
    269269
    270270    /*
     
    326326{
    327327    int rc;
    328     LogFlow((DEVICE_NAME ":_fini\n"));
     328    Log((DEVICE_NAME ":_fini\n"));
    329329
    330330    /*
     
    356356int _info(struct modinfo *pModInfo)
    357357{
    358     LogFlow((DEVICE_NAME ":_info\n"));
     358    Log((DEVICE_NAME ":_info\n"));
    359359
    360360    int rc = mod_info(&g_VBoxNetFltSolarisModLinkage, pModInfo);
    361361
    362     LogFlow((DEVICE_NAME ":_info returns %d\n", rc));
     362    Log((DEVICE_NAME ":_info returns %d\n", rc));
    363363    return rc;
    364364}
     
    375375LOCAL int VBoxNetFltSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd)
    376376{
    377     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisAttach pDip=%p enmCmd=%d\n", pDip, enmCmd));
     377    Log((DEVICE_NAME ":VBoxNetFltSolarisAttach pDip=%p enmCmd=%d\n", pDip, enmCmd));
     378    LogRel((DEVICE_NAME ":blah\n"));
    378379
    379380    switch (enmCmd)
     
    408409LOCAL int VBoxNetFltSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd)
    409410{
    410     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisDetach pDip=%p enmCmd=%d\n", pDip, enmCmd));
     411    Log((DEVICE_NAME ":VBoxNetFltSolarisDetach pDip=%p enmCmd=%d\n", pDip, enmCmd));
    411412
    412413    switch (enmCmd)
     
    443444LOCAL int VBoxNetFltSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pvArg, void **ppResult)
    444445{
    445     LogFlow((DEVICE_NAME ":VBoxNetFltSolarisGetInfo pDip=%p enmCmd=%d pArg=%p instance=%d\n", pDip, enmCmd, getminor((dev_t)pvArg)));
     446    Log((DEVICE_NAME ":VBoxNetFltSolarisGetInfo pDip=%p enmCmd=%d pArg=%p instance=%d\n", pDip, enmCmd, getminor((dev_t)pvArg)));
    446447
    447448    switch (enmCmd)
     
    475476LOCAL inline mblk_t *vboxNetFltSolarisMBlkFromSG(PVBOXNETFLTINS pThis, PINTNETSG pSG, uint32_t fDst)
    476477{
    477     LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkFromSG pThis=%p pSG=%p\n", pThis, pSG));
     478    Log((DEVICE_NAME ":vboxNetFltSolarisMBlkFromSG pThis=%p pSG=%p\n", pThis, pSG));
    478479
    479480    mblk_t *pMsg = allocb(pSG->cbTotal, BPRI_HI);
     
    540541LOCAL int vboxNetFltSolarisMBlkToSG(PVBOXNETFLTINS pThis, mblk_t *pMsg, PINTNETSG pSG, unsigned cSegs, uint32_t fSrc)
    541542{
    542     LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pThis=%p pMsg=%p pSG=%p cSegs=%d\n", pThis, pMsg, pSG, cSegs));
     543    Log((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pThis=%p pMsg=%p pSG=%p cSegs=%d\n", pThis, pMsg, pSG, cSegs));
    543544
    544545    /*
     
    567568    if (pSG->cbTotal < 60 && (fSrc & INTNETTRUNKDIR_HOST))
    568569    {
    569         LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pulling up to length.\n"));
     570        Log((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG pulling up to length.\n"));
    570571
    571572        static uint8_t const s_abZero[128] = {0};
     
    579580#endif
    580581
    581     LogFlow((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG iSeg=%d pSG->cbTotal=%d msgdsize=%d\n", iSeg, pSG->cbTotal, msgdsize(pMsg)));
     582    Log((DEVICE_NAME ":vboxNetFltSolarisMBlkToSG iSeg=%d pSG->cbTotal=%d msgdsize=%d\n", iSeg, pSG->cbTotal, msgdsize(pMsg)));
    582583    return VINF_SUCCESS;
    583584}
     
    591592LOCAL void vboxNetFltSolarisAnalyzeMBlk(mblk_t *pMsg)
    592593{
    593     LogFlowFunc((DEVICE_NAME ":vboxNetFltSolarisAnalyzeMBlk pMsg=%p\n", pMsg));
     594    LogFunc((DEVICE_NAME ":vboxNetFltSolarisAnalyzeMBlk pMsg=%p\n", pMsg));
    594595
    595596    PCRTNETETHERHDR pEthHdr = (PCRTNETETHERHDR)pMsg->b_rptr;
     
    617618        else
    618619        {
    619             LogFlow((DEVICE_NAME ":Chained IP packet. Skipping validity check.\n"));
     620            Log((DEVICE_NAME ":Chained IP packet. Skipping validity check.\n"));
    620621        }
    621622    }
     
    645646        LogRel((DEVICE_NAME ":Unknown EtherType=%x D=%.6Rhxs S=%.6Rhxs\n", RT_H2BE_U16(pEthHdr->EtherType), &pEthHdr->DstMac,
    646647                    &pEthHdr->SrcMac));
    647         /* LogFlow((DEVICE_NAME ":%.*Rhxd\n", MBLKL(pMsg), pMsg->b_rptr)); */
     648        /* Log((DEVICE_NAME ":%.*Rhxd\n", MBLKL(pMsg), pMsg->b_rptr)); */
    648649    }
    649650}
     
    671672LOCAL void vboxNetFltSolarisRecv(void *pvData, mac_resource_handle_t hResource, mblk_t *pMsg, boolean_t fLoopback)
    672673{
    673     LogFlow((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback, pMsg ? MBLKL(pMsg) : 0));
     674    Log((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback, pMsg ? MBLKL(pMsg) : 0));
    674675
    675676    PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvData;
     
    803804    {
    804805        Assert(pThis->pSwitchPort);
    805         LogFlow((DEVICE_NAME ":vboxNetFltSolarisReportInfo phys mac %.6Rhxs\n", &pThis->u.s.MacAddr));
     806        Log((DEVICE_NAME ":vboxNetFltSolarisReportInfo phys mac %.6Rhxs\n", &pThis->u.s.MacAddr));
    806807        pThis->pSwitchPort->pfnReportMacAddress(pThis->pSwitchPort, &pThis->u.s.MacAddr);
    807808        pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, false); /** @todo Promisc */
     
    851852        if (RT_LIKELY(!rc))
    852853        {
    853             LogFlow((DEVICE_NAME ":vboxNetFltSolarisInitVNIC succesfully initialized VNIC.\n"));
     854            Log((DEVICE_NAME ":vboxNetFltSolarisInitVNIC succesfully initialized VNIC.\n"));
    854855            return VINF_SUCCESS;
    855856        }
     
    881882LOCAL int vboxNetFltSolarisInitVNICTemplate(PVBOXNETFLTINS pThis, PVBOXNETFLTVNICTEMPLATE pVNICTemplate)
    882883{
    883     LogFlow((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate pThis=%p pVNICTemplate=%p\n", pThis, pVNICTemplate));
     884    Log((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate pThis=%p pVNICTemplate=%p\n", pThis, pVNICTemplate));
    884885
    885886    AssertReturn(pVNICTemplate, VERR_INVALID_PARAMETER);
     
    926927                        mac_close(hInterface);
    927928
    928                         LogFlow((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate successfully init. VNIC template. szLinkName=%s\n",
     929                        Log((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate successfully init. VNIC template. szLinkName=%s\n",
    929930                                    pVNICTemplate->szLinkName));
    930931                        return VINF_SUCCESS;
     
    10611062LOCAL int vboxNetFltSolarisCreateVNIC(PVBOXNETFLTINS pThis, PVBOXNETFLTVNIC *ppVNIC)
    10621063{
    1063     LogFlow((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC pThis=%p\n", pThis));
     1064    Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC pThis=%p\n", pThis));
    10641065
    10651066    AssertReturn(pThis, VERR_INVALID_POINTER);
     
    11201121            fFlags |= MAC_VLAN;
    11211122#endif
    1122         LogFlow((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC pThis=%p VLAN Id=%u\n", pThis, uVLANId));
     1123        Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC pThis=%p VLAN Id=%u\n", pThis, uVLANId));
    11231124    }
    11241125
     
    11491150            if (RT_SUCCESS(rc))
    11501151            {
    1151                 LogFlow((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC successfully created VNIC '%s' over '%s' with random mac %.6Rhxs\n",
     1152                Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC successfully created VNIC '%s' over '%s' with random mac %.6Rhxs\n",
    11521153                         pVNIC->szName, pszLinkName, &GuestMac));
    11531154                *ppVNIC = pVNIC;
     
    12541255void vboxNetFltPortOsSetActive(PVBOXNETFLTINS pThis, bool fActive)
    12551256{
    1256     LogFlow((DEVICE_NAME ":vboxNetFltPortOsSetActive pThis=%p fActive=%d\n", pThis, fActive));
     1257    Log((DEVICE_NAME ":vboxNetFltPortOsSetActive pThis=%p fActive=%d\n", pThis, fActive));
    12571258
    12581259    /*
     
    12871288int vboxNetFltOsDisconnectIt(PVBOXNETFLTINS pThis)
    12881289{
    1289     LogFlow((DEVICE_NAME ":vboxNetFltOsDisconnectIt pThis=%p\n", pThis));
     1290    Log((DEVICE_NAME ":vboxNetFltOsDisconnectIt pThis=%p\n", pThis));
    12901291    return VINF_SUCCESS;
    12911292}
     
    12941295int  vboxNetFltOsConnectIt(PVBOXNETFLTINS pThis)
    12951296{
    1296     LogFlow((DEVICE_NAME ":vboxNetFltOsConnectIt pThis=%p\n", pThis));
     1297    Log((DEVICE_NAME ":vboxNetFltOsConnectIt pThis=%p\n", pThis));
    12971298    return VINF_SUCCESS;
    12981299}
     
    13011302void vboxNetFltOsDeleteInstance(PVBOXNETFLTINS pThis)
    13021303{
    1303     LogFlow((DEVICE_NAME ":vboxNetFltOsDeleteInstance pThis=%p\n", pThis));
     1304    Log((DEVICE_NAME ":vboxNetFltOsDeleteInstance pThis=%p\n", pThis));
    13041305
    13051306    if (pThis->u.s.hNotify)
     
    13251326int vboxNetFltOsInitInstance(PVBOXNETFLTINS pThis, void *pvContext)
    13261327{
    1327     LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p pvContext=%p\n", pThis, pvContext));
     1328    Log((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p pvContext=%p\n", pThis, pvContext));
    13281329
    13291330    /*
     
    13381339        if (!rc)
    13391340        {
    1340             LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p physical interface '%s' detected.\n", pThis, pThis->szName));
     1341            Log((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p physical interface '%s' detected.\n", pThis, pThis->szName));
    13411342            pThis->u.s.fIsVNIC = false;
    13421343        }
     
    13461347            if (RTStrNCmp(pThis->szName, VBOXBOW_VNIC_TEMPLATE_NAME, sizeof(VBOXBOW_VNIC_TEMPLATE_NAME) - 1) == 0)
    13471348            {
    1348                 LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC template '%s' detected.\n", pThis, pThis->szName));
     1349                Log((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC template '%s' detected.\n", pThis, pThis->szName));
    13491350                pThis->u.s.fIsVNICTemplate = true;
    13501351            }
     
    13531354        if (    pThis->u.s.fIsVNIC
    13541355            && !pThis->u.s.fIsVNICTemplate)
    1355             LogFlow((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC '%s' detected.\n", pThis, pThis->szName));
     1356            Log((DEVICE_NAME ":vboxNetFltOsInitInstance pThis=%p VNIC '%s' detected.\n", pThis, pThis->szName));
    13561357
    13571358        /*
     
    14151416    if (RT_LIKELY(pMsg))
    14161417    {
    1417         LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit pThis=%p cbData=%d\n", pThis, MBLKL(pMsg)));
     1418        Log((DEVICE_NAME ":vboxNetFltPortOsXmit pThis=%p cbData=%d\n", pThis, MBLKL(pMsg)));
    14181419
    14191420        mac_tx_cookie_t pXmitCookie = mac_tx(pVNIC->hClient, pMsg, 0 /* Hint */, MAC_DROP_ON_NO_DESC, NULL /* return message */);
     
    14371438void vboxNetFltPortOsNotifyMacAddress(PVBOXNETFLTINS pThis, void *pvIfData, PCRTMAC pMac)
    14381439{
    1439     LogFlow((DEVICE_NAME ":vboxNetFltPortOSNotifyMacAddress pszIf=%s pszVNIC=%s MAC=%.6Rhxs\n", pThis->szName,
     1440    Log((DEVICE_NAME ":vboxNetFltPortOSNotifyMacAddress pszIf=%s pszVNIC=%s MAC=%.6Rhxs\n", pThis->szName,
    14401441             ((PVBOXNETFLTVNIC)pvIfData)->szName, pMac));
    14411442
     
    14961497                 */
    14971498                mac_rx_set(pVNIC->hClient, vboxNetFltSolarisRecv, pThis);
    1498                 LogFlow((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress successfully added unicast address %.6Rhxs\n", pMac));
     1499                Log((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress successfully added unicast address %.6Rhxs\n", pMac));
    14991500            }
    15001501            else
     
    15301531int vboxNetFltPortOsConnectInterface(PVBOXNETFLTINS pThis, void *pvIf, void **ppvIfData)
    15311532{
    1532     LogFlow((DEVICE_NAME ":vboxNetFltPortOsConnectInterface pThis=%p pvIf=%p\n", pThis, pvIf));
     1533    Log((DEVICE_NAME ":vboxNetFltPortOsConnectInterface pThis=%p pvIf=%p\n", pThis, pvIf));
    15331534
    15341535    int rc = VINF_SUCCESS;
     
    16181619int vboxNetFltPortOsDisconnectInterface(PVBOXNETFLTINS pThis, void *pvIfData)
    16191620{
    1620     LogFlow((DEVICE_NAME ":vboxNetFltPortOsDisconnectInterface pThis=%p\n", pThis));
     1621    Log((DEVICE_NAME ":vboxNetFltPortOsDisconnectInterface pThis=%p\n", pThis));
    16211622
    16221623    PVBOXNETFLTVNIC pVNIC = pvIfData;
     
    16341635         */
    16351636        list_remove(&pThis->u.s.hVNICs, pVNIC);
    1636         LogFlow((DEVICE_NAME ":vboxNetFltPortOsDisconnectInterface destroying pVNIC=%p\n", pVNIC));
     1637        Log((DEVICE_NAME ":vboxNetFltPortOsDisconnectInterface destroying pVNIC=%p\n", pVNIC));
    16371638        vboxNetFltSolarisDestroyVNIC(pVNIC);
    16381639        vboxNetFltSolarisFreeVNIC(pVNIC);
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