Home | History | Annotate | Download | only in dnssdutil

Lines Matching refs:constrained

2270 	Command( "expensive_constrained_updates", ExpensiveConstrainedTestCmd,   kExpensiveConstrainedTestOpts, "Tests if the mDNSResponder can handle expensive and constrained property change correctly", false ),
19572 #define EXPENSIVE_CONSTRAINED_SUBTEST_PROGRESS_KEY_CONSTRAINED_PREV_NOW CFSTR( "Constrained Prev->Now" )
19588 TEST_CONSTRAINED, // Test if mDNSResponder can handle "constrained" 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
19615 Boolean isConstrainedPrev; // If the interface is constrained in the previous test step.
19616 Boolean isConstrainedNow; // If the interface is constrained 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.
19641 Boolean deny_constrained; // if the query should avoid using constrained interface
19855 err = systemf( NULL, "ifconfig %s %sexpensive && ifconfig %s -constrained", context->ifName, context->startFromExpensive ? "" : "-", context->ifName );
19927 // constrained flag is always turned off when testing expensive
19936 // prepare to test constrained flag
19940 err = systemf( NULL, "ifconfig %s -expensive && ifconfig %s -constrained", context->ifName, context->ifName );
19967 // The interface should be inexpensive and unconstrained when the constrained test starts
19974 context->state = TEST_CONSTRAINED; // constrained interface is now under testing
19979 context->isConstrainedNow = true; // will set constrained flag on the interface
19988 // change interface to the constrained one
19989 err = systemf( NULL, "ifconfig %s -expensive && ifconfig %s constrained", context->ifName, context->ifName );
19995 // Since we are testing constrained flag, we should always turn the constrained flag on and off.
19997 SNPrintF( buffer, sizeof( buffer ), "The current constrained status should be different with the previous one: %d -> %d\n", context->isConstrainedPrev, context->isConstrainedNow );
20000 SNPrintF( buffer, sizeof( buffer ), "The interface %s should be inexpensive when testing \"constrained\"\n", 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 );
20022 context->isConstrainedNow = !context->isConstrainedNow; // flip constrained flag
20038 // The interface should be inexpensive and unconstrained when the constrained test starts
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" );
20279 char constrained[ 32 ];
20286 snprintf( constrained, sizeof( constrained ), "%s -> %s", context->isConstrainedPrev ? "True" : "False", context->isConstrainedNow ? "True" : "False" );
20305 EXPENSIVE_CONSTRAINED_SUBTEST_PROGRESS_KEY_CONSTRAINED_PREV_NOW, constrained,