Changeset 22799 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Sep 7, 2009 10:08:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r22790 r22799 42 42 #ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING 43 43 # include <iprt/timer.h> 44 # include <iprt/time.h> 44 45 #endif 45 46 … … 386 387 387 388 #ifdef VBOXNETFLT_SOLARIS_IPV6_POLLING 388 /** Glob laIPv6 polling interval */389 /** Global IPv6 polling interval */ 389 390 static int g_VBoxNetFltSolarisPollInterval = 0; 390 391 #endif … … 526 527 if (Interval == -1) 527 528 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) 530 530 { 531 531 LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Invalid polling interval %d. Expected between 1 and 120 secs.\n", … … 2426 2426 * Setup kernel poll timer. 2427 2427 */ 2428 rc = RTTimerCreateEx(&pPromiscStream->pIp6Timer, Interval * (uint64_t)1000000000, RTTIMER_FLAGS_CPU_A LL,2428 rc = RTTimerCreateEx(&pPromiscStream->pIp6Timer, Interval * (uint64_t)1000000000, RTTIMER_FLAGS_CPU_ANY, 2429 2429 vboxNetFltSolarispIp6Timer, (void *)pThis); 2430 2430 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 } 2432 2435 else 2433 2436 LogRel((DEVICE_NAME ":vboxNetFltSolarisSetupIp6Polling: Failed to create timer. rc=%d\n", rc)); … … 2491 2494 int rc2 = vboxNetFltSolarisAttachIp6(pThis, true /* fAttach */); 2492 2495 #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) 2494 2498 { 2495 2499 rc = vboxNetFltSolarisSetupIp6Polling(pThis);
Note:
See TracChangeset
for help on using the changeset viewer.