Home | History | Annotate | Download | only in dnssdutil

Lines Matching defs:expensive

2270 	Command( "expensive_constrained_updates", ExpensiveConstrainedTestCmd,   kExpensiveConstrainedTestOpts, "Tests if the mDNSResponder can handle expensive and constrained property change correctly", false ),
19547 // Use "-n tag-expensive-test.ttl-86400.d.test." to run the test locally
19548 // #define LOOPBACK_TEST_QUESTION_NAME "tag-expensive-test.ttl-86400.d.test."
19571 #define EXPENSIVE_CONSTRAINED_SUBTEST_PROGRESS_KEY_EXPENSIVE_PREV_NOW CFSTR( "Expensive Prev->Now" )
19586 TEST_EXPENSIVE, // Test if mDNSResponder can handle "expensive" status change of the corresponding interface
19590 TEST_EXPENSIVE_CONSTRAINED, // Test if mDNSResponder can handle "expensive" and "constrained" status change of the corresponding interface at the same time
19613 Boolean isExpensivePrev; // If the interface is expensive in the previous test step.
19614 Boolean isExpensiveNow; // If the interface is expensive now.
19617 Boolean startFromExpensive; // All the test will start from expensive/constrained interface, so there won's be an answer until the interface is changed.
19619 struct timeval updateTime; // The time when interface status(expensive or constrained) is changed.
19640 Boolean deny_expensive; // if the query should avoid using expensive interface
19642 Boolean start_from_expensive; // if the query should starts from using an expensive interface
19844 // The question name must end with "d.test.", "tag-expensive-test.ttl-86400.d.test." for example, then the test will
19876 context->state = TEST_EXPENSIVE_PREPARE; // start from expensive test
19901 context->state = TEST_EXPENSIVE; // begin to test expensive flag
19904 context->isExpensiveNow = !context->isExpensiveNow; // flip the expensive status
19923 // Since we are testing expensive flag, we should always turn the expensive flag on and off.
19925 SNPrintF( buffer, sizeof( buffer ), "The current expensive status should be different with the previous one: %d -> %d\n", context->isExpensivePrev, context->isExpensiveNow);
19927 // constrained flag is always turned off when testing expensive
19929 SNPrintF( buffer, sizeof( buffer ), "The interface %s should be unconstrained when testing \"expensive\"\n", context->ifName );
19934 if ( context->counter == TEST_REPETITION ) // expensive test finished
19940 err = systemf( NULL, "ifconfig %s -expensive && ifconfig %s -constrained", context->ifName, context->ifName );
19951 context->isExpensiveNow = !context->isExpensiveNow; // flip the expensive status
19989 err = systemf( NULL, "ifconfig %s -expensive && ifconfig %s constrained", context->ifName, context->ifName );
20007 // test changing expensive and constrained flags at the same time
20011 err = systemf( NULL, "ifconfig %s -expensive && ifconfig %s -constrained", context->ifName, context->ifName );
20046 // now flip expensive and constrained at the same time
20062 err = systemf(NULL, "ifconfig %s expensive && ifconfig %s constrained", context->ifName, context->ifName );
20068 // expensive and constrained flag should always be changed
20070 SNPrintF( buffer, sizeof( buffer ), "Both expensive and constrained status need to be changed" );
20278 char expensive[ 32 ];
20285 snprintf( expensive, sizeof( expensive ), "%s -> %s", context->isExpensivePrev ? "True" : "False", context->isExpensiveNow ? "True" : "False" );
20304 EXPENSIVE_CONSTRAINED_SUBTEST_PROGRESS_KEY_EXPENSIVE_PREV_NOW, expensive,