VirtualBox

Ignore:
Timestamp:
Sep 7, 2009 10:08:54 AM (15 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFlt: IPv6 poll fixes.

File:
1 edited

Legend:

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

    r22790 r22799  
    4242#ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING
    4343# include <iprt/timer.h>
     44# include <iprt/time.h>
    4445#endif
    4546
     
    386387
    387388#ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING
    388 /** Globla IPv6 polling interval */
     389/** Global IPv6 polling interval */
    389390static int g_VBoxNetFltSolarisPollInterval = 0;
    390391#endif
     
    526527                if (Interval == -1)
    527528                    LogFlow((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: no poll interval property specified. Skipping Ipv6 polling.\n"));
    528 
    529                 if (Interval < 1 || Interval > 120)
     529                else if (Interval < 1 || Interval > 120)
    530530                {
    531531                    LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Invalid polling interval %d. Expected between 1 and 120 secs.\n",
     
    24262426             * Setup kernel poll timer.
    24272427             */
    2428             rc = RTTimerCreateEx(&pPromiscStream->pIp6Timer, Interval * (uint64_t)1000000000, RTTIMER_FLAGS_CPU_ALL,
     2428            rc = RTTimerCreateEx(&pPromiscStream->pIp6Timer, Interval * (uint64_t)1000000000, RTTIMER_FLAGS_CPU_ANY,
    24292429                                vboxNetFltSolarispIp6Timer, (void *)pThis);
    24302430            if (RT_SUCCESS(rc))
    2431                 rc = RTTimerStart(pPromiscStream->pIp6Timer, 0 /* fire ASAP */);
     2431            {
     2432                rc = RTTimerStart(pPromiscStream->pIp6Timer, 10 * (uint64_t)1000000000 /* 10 seconds to blastoff */);
     2433                LogFlow((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Ipv6 %d second timer begins firing in 10 seconds.\n", Interval));
     2434            }
    24322435            else
    24332436                LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Failed to create timer. rc=%d\n", rc));
     
    24912494            int rc2 = vboxNetFltSolarisAttachIp6(pThis, true /* fAttach */);
    24922495#ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING
    2493             if (rc2 == VERR_INTNET_FLT_IF_NOT_FOUND)
     2496            if (   rc2 == VERR_INTNET_FLT_IF_NOT_FOUND
     2497                && g_VBoxNetFltSolarisPollInterval != -1)
    24942498            {
    24952499                rc = vboxNetFltSolarisSetupIp6Polling(pThis);
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