/openthread-3.5.0/third_party/mbedtls/repo/programs/test/ |
D | query_config.c | 131 int query_config( const char *config ) in query_config() argument 134 if( strcmp( "MBEDTLS_HAVE_ASM", config ) == 0 ) in query_config() 142 if( strcmp( "MBEDTLS_NO_UDBL_DIVISION", config ) == 0 ) in query_config() 150 if( strcmp( "MBEDTLS_NO_64BIT_MULTIPLICATION", config ) == 0 ) in query_config() 158 if( strcmp( "MBEDTLS_HAVE_SSE2", config ) == 0 ) in query_config() 166 if( strcmp( "MBEDTLS_HAVE_TIME", config ) == 0 ) in query_config() 174 if( strcmp( "MBEDTLS_HAVE_TIME_DATE", config ) == 0 ) in query_config() 182 if( strcmp( "MBEDTLS_PLATFORM_MEMORY", config ) == 0 ) in query_config() 190 if( strcmp( "MBEDTLS_PLATFORM_NO_STD_FUNCTIONS", config ) == 0 ) in query_config() 198 if( strcmp( "MBEDTLS_PLATFORM_EXIT_ALT", config ) == 0 ) in query_config() [all …]
|
/openthread-3.5.0/third_party/mbedtls/repo/tests/scripts/ |
D | all.sh | 515 if ! git diff --quiet include/mbedtls/config.h; then 885 scripts/config.py full 907 scripts/config.py full 908 scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO 909 scripts/config.py set MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER 927 scripts/config.py full 928 scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO 929 scripts/config.py unset MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS 930 scripts/config.py set MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER 931 scripts/config.py set MBEDTLS_PSA_CRYPTO_SPM [all …]
|
/openthread-3.5.0/tests/scripts/thread-cert/border_router/ |
D | test_single_border_router.py | 33 import config 88 self.simulator.go(config.LEADER_STARTUP_DELAY) 92 self.simulator.go(config.ROUTER_STARTUP_DELAY) 114 self.assertEqual(len(br.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 115 self.assertEqual(len(router.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 116 self.assertEqual(len(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)), 1) 118 br1_omr_address = br.get_ip6_address(config.ADDRESS_TYPE.OMR)[0] 119 router1_omr_address = router.get_ip6_address(config.ADDRESS_TYPE.OMR)[0] 120 host_ula_address = host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0] 123 self.assertTrue(router.ping(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0])) [all …]
|
D | test_multi_border_routers.py | 33 import config 105 self.simulator.go(config.LEADER_STARTUP_DELAY) 109 self.simulator.go(config.ROUTER_STARTUP_DELAY) 115 self.simulator.go(config.BORDER_ROUTER_STARTUP_DELAY) 119 self.simulator.go(config.ROUTER_STARTUP_DELAY) 151 self.assertEqual(len(br1.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 152 self.assertEqual(len(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 153 self.assertEqual(len(br2.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 154 self.assertEqual(len(router2.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 158 self.assertTrue(router1.ping(router2.get_ip6_address(config.ADDRESS_TYPE.OMR)[0])) [all …]
|
D | test_publish_meshcop_service.py | 34 import config 96 self.simulator.go(config.BORDER_ROUTER_STARTUP_DELAY) 107 self.simulator.go(config.BORDER_ROUTER_STARTUP_DELAY) 115 self.simulator.go(config.BORDER_ROUTER_STARTUP_DELAY) 138 'channel': config.CHANNEL, 139 'channel_mask': config.CHANNEL_MASK, 140 'extended_panid': config.EXTENDED_PANID, 141 'mesh_local_prefix': config.MESH_LOCAL_PREFIX.split('/')[0], 142 'network_key': binascii.hexlify(config.DEFAULT_NETWORK_KEY).decode(), 144 'panid': config.PANID, [all …]
|
D | test_radvd_coexist.py | 32 import config 89 self.simulator.go(config.LEADER_STARTUP_DELAY) 93 self.simulator.go(config.ROUTER_STARTUP_DELAY) 96 self.simulator.go(config.BORDER_ROUTER_STARTUP_DELAY) 108 self.assertEqual(len(br.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 109 self.assertEqual(len(router.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) 113 self.assertEqual(len(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)), 1) 115 self.assertTrue(router.ping(host.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0])) 116 … self.assertTrue(host.ping(router.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], backbone=True)) 128 self.assertEqual(len(br.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1) [all …]
|
D | test_firewall.py | 33 import config 84 self.simulator.go(config.LEADER_STARTUP_DELAY) 89 self.simulator.go(config.ROUTER_STARTUP_DELAY) 92 br1.set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 117 …self.assertTrue(host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], interface=hos… 120 …self.assertTrue(host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.DUA), interface=host.E… 124 host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], 130 host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], 131 interface=br1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], 136 host_ping_ether(router1.get_ip6_address(config.ADDRESS_TYPE.OMR)[0], [all …]
|
/openthread-3.5.0/src/core/backbone_router/ |
D | bbr_leader.cpp | 148 Config config; in UpdateBackboneRouterPrimary() local 151 Get<NetworkData::Service::Manager>().GetBackboneRouterPrimary(config); in UpdateBackboneRouterPrimary() 153 if (config.mServer16 != mConfig.mServer16) in UpdateBackboneRouterPrimary() 155 if (config.mServer16 == Mac::kShortAddrInvalid) in UpdateBackboneRouterPrimary() 169 else if (config.mServer16 == Mac::kShortAddrInvalid) in UpdateBackboneRouterPrimary() 174 else if (config.mSequenceNumber != mConfig.mSequenceNumber) in UpdateBackboneRouterPrimary() 178 …else if (config.mReregistrationDelay != mConfig.mReregistrationDelay || config.mMlrTimeout != mCon… in UpdateBackboneRouterPrimary() 188 if (config.mServer16 != Mac::kShortAddrInvalid) in UpdateBackboneRouterPrimary() 190 uint32_t origTimeout = config.mMlrTimeout; in UpdateBackboneRouterPrimary() 192 config.mMlrTimeout = Clamp(config.mMlrTimeout, kMinMlrTimeout, kMaxMlrTimeout); in UpdateBackboneRouterPrimary() [all …]
|
/openthread-3.5.0/third_party/mbedtls/ |
D | CMakeLists.txt | 29 set(OT_MBEDTLS_DEFAULT_CONFIG_FILE \"openthread-mbedtls-config.h\") 31 set(OT_MBEDTLS_CONFIG_FILE "" CACHE STRING "The mbedTLS config file") 53 add_custom_command(OUTPUT openthread-mbedtls-config.h 55 "'-D$<JOIN:$<TARGET_PROPERTY:ot-config,INTERFACE_COMPILE_DEFINITIONS>,';'-D>'" 56 "-I$<JOIN:$<TARGET_PROPERTY:ot-config,INTERFACE_INCLUDE_DIRECTORIES>,;-I>" 59 "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls-config.h" | 60 ${SED_EXE} '/openthread-core-config\.h/d' > 61 openthread-mbedtls-config.h 62 MAIN_DEPENDENCY mbedtls-config.h 66 add_custom_target(openthread-mbedtls-config [all …]
|
/openthread-3.5.0/src/core/thread/ |
D | network_data.cpp | 90 Config config; in GetNextOnMeshPrefix() local 92 config.mOnMeshPrefix = &aConfig; in GetNextOnMeshPrefix() 93 config.mExternalRoute = nullptr; in GetNextOnMeshPrefix() 94 config.mService = nullptr; in GetNextOnMeshPrefix() 95 config.mLowpanContext = nullptr; in GetNextOnMeshPrefix() 97 return Iterate(aIterator, aRloc16, config); in GetNextOnMeshPrefix() 107 Config config; in GetNextExternalRoute() local 109 config.mOnMeshPrefix = nullptr; in GetNextExternalRoute() 110 config.mExternalRoute = &aConfig; in GetNextExternalRoute() 111 config.mService = nullptr; in GetNextExternalRoute() [all …]
|
/openthread-3.5.0/tests/scripts/thread-cert/ |
D | test_anycast.py | 32 import config 74 self.simulator.go(config.LEADER_STARTUP_DELAY) 80 self.simulator.go(config.ROUTER_STARTUP_DELAY) 93 print(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC)) 94 self.assertTrue(len(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC)) == 1) 96 …self.nodes[ROUTER3].udp_send(TEST_UDP_BYTES, self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TY… 105 self.assertTrue(len(self.nodes[ROUTER5].get_ip6_address(config.ADDRESS_TYPE.ALOC)) == 1) 107 …self.nodes[ROUTER3].udp_send(TEST_UDP_BYTES, self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TY… 112 …self.nodes[ROUTER4].udp_send(TEST_UDP_BYTES, self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TY… 121 self.assertTrue(len(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC)) == 0) [all …]
|
D | test_ping.py | 36 import config 79 self.simulator.go(config.LEADER_STARTUP_DELAY) 83 self.simulator.go(config.ROUTER_STARTUP_DELAY) 87 self.simulator.go(config.ROUTER_STARTUP_DELAY) 91 self.assertTrue(router1.ping(router2.get_ip6_address(config.ADDRESS_TYPE.RLOC))) 94 self.assertTrue(router1.ping(router2.get_ip6_address(config.ADDRESS_TYPE.RLOC), count=5)) 99 router2.ping(router1.get_ip6_address(config.ADDRESS_TYPE.LINK_LOCAL), 100 interface=router2.get_ip6_address(config.ADDRESS_TYPE.LINK_LOCAL))) 103 self.assertTrue(router2.ping(router3.get_ip6_address(config.ADDRESS_TYPE.RLOC))) 106 self.assertFalse(router2.ping(router3.get_ip6_address(config.ADDRESS_TYPE.LINK_LOCAL))) [all …]
|
D | Cert_5_1_07_MaxChildCount.py | 32 import config 85 'timeout': config.DEFAULT_CHILD_TIMEOUT, 92 'timeout': config.DEFAULT_CHILD_TIMEOUT, 99 'timeout': config.DEFAULT_CHILD_TIMEOUT, 106 'timeout': config.DEFAULT_CHILD_TIMEOUT, 113 'timeout': config.DEFAULT_CHILD_TIMEOUT, 120 'timeout': config.DEFAULT_CHILD_TIMEOUT, 127 'timeout': config.DEFAULT_CHILD_TIMEOUT, 134 'timeout': config.DEFAULT_CHILD_TIMEOUT, 141 'timeout': config.DEFAULT_CHILD_TIMEOUT, [all …]
|
D | v1_2_test_dua_handle_address_error.py | 34 import config 87 self.simulator.set_lowpan_context(1, config.DOMAIN_PREFIX) 95 self.simulator.go(WAIT_ATTACH * 2 + config.DEFAULT_ROUTER_SELECTION_JITTER) 101 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 116 … self.simulator.go(WAIT_ATTACH + config.PARENT_AGGREGATIOIN_DELAY + REG_DELAY + WAIT_REDUNDANCE) 124 dua = self.nodes[nodeid].get_addr(config.DOMAIN_PREFIX) 133 pbbr_rloc = self.nodes[BBR_1].get_ip6_address(config.ADDRESS_TYPE.RLOC) 136 … self.simulator.go(config.PARENT_AGGREGATIOIN_DELAY * is_med + REG_DELAY + WAIT_REDUNDANCE + 50) 139 new_dua = self.nodes[nodeid].get_addr(config.DOMAIN_PREFIX)
|
D | test_reset.py | 30 import config 59 self.simulator.go(config.LEADER_STARTUP_DELAY) 63 self.simulator.go(config.ROUTER_STARTUP_DELAY) 71 … self.assertTrue(self.nodes[ED].ping(self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.RLOC))) 76 self.simulator.go(config.LEADER_STARTUP_DELAY) 81 self.simulator.go(config.ROUTER_STARTUP_DELAY) 90 … self.assertTrue(self.nodes[ED].ping(self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.RLOC)))
|
D | Cert_5_3_05_RoutingLinkQuality.py | 33 import config 89 self.simulator.go(config.LEADER_STARTUP_DELAY) 94 self.simulator.go(config.ROUTER_STARTUP_DELAY) 103 leader_rloc = self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.RLOC) 107 …self.nodes[LEADER].add_allowlist(self.nodes[DUT_ROUTER1].get_addr64(), config.RSSI['LINK_QULITY_1'… 108 …self.nodes[DUT_ROUTER1].add_allowlist(self.nodes[LEADER].get_addr64(), config.RSSI['LINK_QULITY_1'… 109 self.simulator.go(3 * config.MAX_ADVERTISEMENT_INTERVAL) 114 …self.nodes[LEADER].add_allowlist(self.nodes[DUT_ROUTER1].get_addr64(), config.RSSI['LINK_QULITY_2'… 115 …self.nodes[DUT_ROUTER1].add_allowlist(self.nodes[LEADER].get_addr64(), config.RSSI['LINK_QULITY_2'… 116 self.simulator.go(3 * config.MAX_ADVERTISEMENT_INTERVAL) [all …]
|
D | v1_2_test_domain_unicast_address.py | 33 import config 170 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 174 self.simulator.set_lowpan_context(context_id, config.DOMAIN_PREFIX) 183 dua = self.nodes[ROUTER_1_1].get_addr(config.DOMAIN_PREFIX) 192 dua = self.nodes[ROUTER_1_2].get_addr(config.DOMAIN_PREFIX) 217 med_1_2_dua = self.nodes[MED_1_2].get_addr(config.DOMAIN_PREFIX) 232 dua = self.nodes[MED_1_2].get_addr(config.DOMAIN_PREFIX) 244 dua = self.nodes[MED_1_2].get_addr(config.DOMAIN_PREFIX) 256 self.simulator.set_lowpan_context(context_id, config.DOMAIN_PREFIX_ALTER) 257 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX_ALTER) [all …]
|
/openthread-3.5.0/ |
D | CMakeLists.txt | 43 add_library(ot-config INTERFACE) 44 add_library(ot-config-ftd INTERFACE) 45 add_library(ot-config-mtd INTERFACE) 46 add_library(ot-config-radio INTERFACE) 53 target_include_directories(ot-config INTERFACE 62 target_compile_definitions(ot-config INTERFACE "BYTE_ORDER_BIG_ENDIAN=1") 87 target_compile_definitions(ot-config INTERFACE "OPENTHREAD_ENABLE_COVERAGE=1") 88 target_compile_options(ot-config INTERFACE -g -O0 --coverage) 89 target_link_libraries(ot-config INTERFACE --coverage) 99 target_compile_definitions(ot-config INTERFACE "PACKAGE_NAME=\"${OT_PACKAGE_NAME}\"") [all …]
|
/openthread-3.5.0/third_party/mbedtls/repo/scripts/ |
D | footprint.sh | 76 scripts/config.py unset MBEDTLS_NET_C || true 77 scripts/config.py unset MBEDTLS_TIMING_C || true 78 scripts/config.py unset MBEDTLS_FS_IO || true 79 scripts/config.py --force set MBEDTLS_NO_PLATFORM_ENTROPY || true 115 doit default include/mbedtls/config.h 116 doit thread configs/config-thread.h 117 doit suite-b configs/config-suite-b.h 118 doit psk configs/config-ccm-psk-tls1_2.h
|
/openthread-3.5.0/tests/scripts/thread-cert/backbone/ |
D | test_dua_dad.py | 35 import config 55 assert (re.match(config.DOMAIN_PREFIX_REGEX_PATTERN, DUPLICATE_DUA)) 124 self.simulator.go(config.LEADER_STARTUP_DELAY) 130 self.nodes[PBBR].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 133 self.assertIsNotNone(self.nodes[PBBR].get_ip6_address(config.ADDRESS_TYPE.DUA)) 144 self.assertIsNotNone(self.nodes[SBBR].get_ip6_address(config.ADDRESS_TYPE.DUA)) 150 self.simulator.go(config.DUA_DAD_DELAY + WAIT_REDUNDANCE) 151 self.assertIsNotNone(self.nodes[ROUTER1].get_ip6_address(config.ADDRESS_TYPE.DUA)) 155 self.simulator.go(config.LEADER_STARTUP_DELAY) 161 self.nodes[PBBR2].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') [all …]
|
D | test_dua_routing.py | 34 import config 112 self.simulator.go(config.LEADER_STARTUP_DELAY) 118 self.nodes[PBBR].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 121 self.assertIsNotNone(self.nodes[PBBR].get_ip6_address(config.ADDRESS_TYPE.DUA)) 132 self.assertIsNotNone(self.nodes[SBBR].get_ip6_address(config.ADDRESS_TYPE.DUA)) 138 self.assertIsNotNone(self.nodes[ROUTER1].get_ip6_address(config.ADDRESS_TYPE.DUA)) 142 self.simulator.go(config.LEADER_STARTUP_DELAY) 148 self.nodes[PBBR2].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 151 self.assertIsNotNone(self.nodes[PBBR2].get_ip6_address(config.ADDRESS_TYPE.DUA)) 157 self.assertIsNotNone(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.DUA)) [all …]
|
D | test_dua_routing_med.py | 34 import config 112 self.simulator.go(config.LEADER_STARTUP_DELAY) 118 self.nodes[PBBR].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 121 self.assertIsNotNone(self.nodes[PBBR].get_ip6_address(config.ADDRESS_TYPE.DUA)) 127 self.assertIsNotNone(self.nodes[ROUTER1].get_ip6_address(config.ADDRESS_TYPE.DUA)) 133 self.assertIsNotNone(self.nodes[MED1].get_ip6_address(config.ADDRESS_TYPE.DUA)) 137 self.simulator.go(config.LEADER_STARTUP_DELAY) 143 self.nodes[PBBR2].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD') 146 self.assertIsNotNone(self.nodes[PBBR2].get_ip6_address(config.ADDRESS_TYPE.DUA)) 152 self.assertIsNotNone(self.nodes[MED2].get_ip6_address(config.ADDRESS_TYPE.DUA)) [all …]
|
/openthread-3.5.0/src/core/utils/ |
D | slaac_address.cpp | 149 NetworkData::OnMeshPrefixConfig config; in Update() local 170 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in Update() 172 if (config.mDp) in Update() 178 if (config.mSlaac && !ShouldFilter(config.GetPrefix()) && in Update() 179 DoesConfigMatchNetifAddr(config, slaacAddr)) in Update() 203 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in Update() 205 Ip6::Prefix &prefix = config.GetPrefix(); in Update() 207 … if (config.mDp || !config.mSlaac || (prefix.GetLength() != Ip6::NetworkPrefix::kLength) || in Update() 217 if (DoesConfigMatchNetifAddr(config, netifAddr)) in Update() 235 … slaacAddr.InitAsSlaacOrigin(config.mOnMesh ? prefix.mLength : 128, config.mPreferred); in Update()
|
/openthread-3.5.0/src/core/net/ |
D | nd_agent.cpp | 53 NetworkData::OnMeshPrefixConfig config; in UpdateService() local 64 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService() 66 if (!config.mNdDns) in UpdateService() 71 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService() 93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService() 95 if (!config.mNdDns) in UpdateService() 100 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
|
/openthread-3.5.0/src/posix/platform/ |
D | CMakeLists.txt | 31 add_library(ot-posix-config INTERFACE) 35 target_compile_definitions(ot-posix-config 39 # We have to add this definition to `ot-config` because openthread core 40 # libraries will set config file to "openthrad-core-posix-config.h" which 50 target_compile_definitions(ot-posix-config 54 target_compile_definitions(ot-posix-config 61 target_compile_definitions(ot-posix-config 68 target_compile_definitions(ot-posix-config 75 target_compile_definitions(ot-posix-config 82 target_compile_definitions(ot-posix-config [all …]
|