/openthread-3.7.0/tests/unit/ |
D | test_ip_address.cpp | 178 Ip6::Prefix prefix; in TestIp6AddressFromString() local 189 VerifyOrQuit(prefix.FromString(string) == testVector.mError); in TestIp6AddressFromString() 193 VerifyOrQuit(memcmp(prefix.GetBytes(), testVector.mAddr, sizeof(Ip6::Address)) == 0); in TestIp6AddressFromString() 194 VerifyOrQuit(prefix.GetLength() == 128); in TestIp6AddressFromString() 201 Ip6::Prefix prefix; in TestIp6PrefixFromString() local 203 SuccessOrQuit(prefix.FromString("::/128")); in TestIp6PrefixFromString() 204 VerifyOrQuit(prefix.GetLength() == 128); in TestIp6PrefixFromString() 206 SuccessOrQuit(prefix.FromString("::/0128")); in TestIp6PrefixFromString() 207 VerifyOrQuit(prefix.GetLength() == 128); in TestIp6PrefixFromString() 209 SuccessOrQuit(prefix.FromString("::/5")); in TestIp6PrefixFromString() [all …]
|
/openthread-3.7.0/tests/toranj/cli/ |
D | test-014-address-resolver.py | 82 prefix = 'fd00:abba::' variable 83 r1.add_prefix(prefix + '/64', 'pos', 'med') 131 r1.add_ip_addr(prefix + '1') 136 r2.add_ip_addr(prefix + "2:" + str(num)) 137 r3.add_ip_addr(prefix + "3:" + str(num)) 138 c2.add_ip_addr(prefix + "c2:" + str(num)) 139 c3.add_ip_addr(prefix + "c3:" + str(num)) 154 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody') 195 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody') 220 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody') [all …]
|
/openthread-3.7.0/tests/toranj/ncp/ |
D | test-026-slaac-address-wpantund.py | 47 def verify_address(node_list, prefix): argument 53 verify(any([addr.startswith(prefix[:-1]) for addr in all_addrs])) 56 def verify_no_address(node_list, prefix): argument 62 verify(all([not addr.startswith(prefix[:-1]) for addr in all_addrs])) 67 prefix, 84 if p.prefix == prefix: 90 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 93 def verify_no_prefix(node_list, prefix): argument 100 verify(not p.prefix == prefix)
|
D | test-030-slaac-address-ncp.py | 55 def verify_address(node_list, prefix): argument 61 verify(any([addr.startswith(prefix[:-1]) for addr in all_addrs])) 64 def verify_no_address(node_list, prefix): argument 70 verify(all([not addr.startswith(prefix[:-1]) for addr in all_addrs])) 75 prefix, 92 if p.prefix == prefix: 98 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 101 def verify_no_prefix(node_list, prefix): argument 108 verify(not p.prefix == prefix)
|
D | test-025-network-data-timeout.py | 59 prefix, 78 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16): 90 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 93 def verify_no_prefix(node_list, prefix, rloc16): argument 101 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16): 102 …raise wpan.VerifyError("Did find prefix {} with rloc {} on node {}".format(prefix, hex(rloc16), no…
|
D | test-014-ip6-address-add.py | 131 for prefix in [IP6_PREFIX_1, IP6_PREFIX_2, IP6_PREFIX_3]: 135 if p.prefix == prefix: 147 raise wpan.VerifyError('Did not find prefix {} on node {}'.format(prefix, node)) 176 verify(p.prefix != IP6_PREFIX_1)
|
D | test-040-network-data-stable-full.py | 63 prefix, 82 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16): 94 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 97 def verify_no_prefix(node_list, prefix, rloc16): argument 105 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16): 106 …raise wpan.VerifyError("Did find prefix {} with rloc {} on node {}".format(prefix, hex(rloc16), no…
|
D | test-010-on-mesh-prefix-config-gateway.py | 51 def verify_address(node_list, prefix): argument 57 verify(any([addr.startswith(prefix[:-1]) for addr in all_addrs])) 62 prefix, 79 if p.prefix == prefix: 91 raise wpan.VerifyError('Did not find prefix {} on node {}'.format(prefix, node))
|
D | test-024-partition-merge.py | 62 prefix, 79 if p.prefix == prefix: 91 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node))
|
/openthread-3.7.0/tests/scripts/thread-cert/ |
D | lowpan.py | 319 def __init__(self, prefix, prefix_length=None): argument 320 if isinstance(prefix, str): 321 prefix, prefix_length = prefix.split("/") 324 a = ipaddress.ip_address(prefix) 329 elif isinstance(prefix, bytearray): 330 self._prefix = prefix 334 def prefix(self): member in Context 546 def _merge_prefix_with_address(self, prefix, prefix_length, address_bytes): argument 574 src_addr = prefix[:prefix_length_full_bytes] 578 prefix_overlapping_byte = prefix[prefix_length_all_bytes - 1] [all …]
|
D | test_lowpan.py | 194 prefix = bytearray([random.getrandbits(8) for _ in range(random.randint(2, 15))]) 195 prefix_length = len(prefix) 196 return lowpan.Context(prefix, prefix_length * 8) 287 context_manager[0] = lowpan.Context(prefix="fd00:db8::/64") 457 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") 487 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") 517 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") 547 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") 577 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") 605 context_manager[10] = lowpan.Context(prefix="2000:0db8::/64") [all …]
|
D | Cert_7_1_06_BorderRouterAsLeader.py | 204 p.thread_nwd.tlv.prefix and\ 238 p.thread_nwd.tlv.prefix 266 p.thread_nwd.tlv.prefix 292 p.thread_nwd.tlv.prefix and\ 324 p.thread_nwd.tlv.prefix and\ 347 p.thread_nwd.tlv.prefix and\ 382 p.thread_nwd.tlv.prefix and\ 401 p.thread_nwd.tlv.prefix and\ 434 p.thread_nwd.tlv.prefix and\ 464 p.thread_nwd.tlv.prefix and\
|
D | Cert_7_1_07_BorderRouterAsLeader.py | 228 p.thread_nwd.tlv.prefix and\ 263 p.thread_nwd.tlv.prefix and\ 291 is_sublist([Ipv6Addr(PREFIX_1[:-3])], p.thread_nwd.tlv.prefix) 317 is_sublist([Ipv6Addr(PREFIX_1[:-3])], p.thread_nwd.tlv.prefix) and\ 340 p.thread_nwd.tlv.prefix and\ 391 p.thread_nwd.tlv.prefix) and\ 437 p.thread_nwd.tlv.prefix) and\ 517 p.thread_nwd.tlv.prefix) and\ 553 p.thread_nwd.tlv.prefix) and\
|
/openthread-3.7.0/tests/scripts/thread-cert/border_router/ |
D | test_manual_omr_prefix.py | 114 …ilter(lambda p: ICMPV6_RA_OPT_TYPE_RIO in p.icmpv6.opt.type and '2004::' in p.icmpv6.opt.prefix and 115 BR_1_OMR_PREFIX in p.icmpv6.opt.prefix).must_next() 117 def _test_manual_omr_prefix(self, prefix, flags, expect_withdraw, prf='med'): argument 121 br2.add_prefix(prefix, flags, prf=prf) 128 self._assert_prefixes_equal(br1.get_netdata_omr_prefixes(), [prefix]) 130 … self._assert_prefixes_equal(br1.get_netdata_omr_prefixes(), [br1.get_br_omr_prefix(), prefix]) 134 br2.remove_prefix(prefix)
|
/openthread-3.7.0/tests/scripts/expect/ |
D | tun-udp.exp | 49 set prefix $expect_out(1,string) 52 send "udp connect $prefix:bb1:ebd6:ad10:f33 1234\n" 55 send "udp connect $prefix:1:2:3:4 4321\n"
|
D | cli-ipmaddr.exp | 43 set prefix [get_meshlocal_prefix] 46 expect "ff32:40:$prefix:0:1" 49 expect "ff33:40:$prefix:0:1"
|
/openthread-3.7.0/src/cli/ |
D | README_NETDATA.md | 61 5. Register an IPv6 prefix assigned to the Thread network. 64 > prefix add fd00:dead:beef:cafe::/64 paros 245 …mechanisms to limit the number of similar Service and/or Prefix (on-mesh prefix or external route)… 274 ### publish prefix \<prefix\> [padcrosnD][prf] 276 Publish an on-mesh prefix entry. 290 > netdata publish prefix fd00:1234:5678::/64 paos med 294 ### publish route \<prefix\> [sn][prf] 308 ### publish replace \<old prefix\> \<prefix\> [sn][prf] 312 …prefix, this command behaves similarly to `netdata publish route`. If there is a previously publis… 345 - The on-mesh prefix [all …]
|
D | cli_network_data.cpp | 386 otIp6Prefix prefix; in Process() local 389 SuccessOrExit(error = aArgs[1].ParseAsIp6Prefix(prefix)); in Process() 391 error = otNetDataReplacePublishedExternalRoute(GetInstancePtr(), &prefix, &config); in Process() 437 otIp6Prefix prefix; in Process() local 439 if (aArgs[0].ParseAsIp6Prefix(prefix) == OT_ERROR_NONE) in Process() 441 error = otNetDataUnpublishPrefix(GetInstancePtr(), &prefix); in Process() 570 otBorderRouterConfig prefix; in OutputNetworkData() local 578 while (GetNextPrefix(&iterator, &prefix, aLocal) == OT_ERROR_NONE) in OutputNetworkData() 580 if ((aRloc16 == kAnyRloc16) || (aRloc16 == prefix.mRloc16)) in OutputNetworkData() 582 OutputPrefix(prefix); in OutputNetworkData()
|
D | README_BR.md | 203 - `stopped`: DHCPv6 PD in enabled but won't try to request and publish a prefix. 204 - `running`: DHCPv6 PD is enabled and will try to request and publish a prefix. 214 Get the DHCPv6 Prefix Delegation (PD) provided off-mesh-routable (OMR) prefix. 230 Info per prefix entry: 232 - The prefix 233 - Whether the prefix is on-link or route 234 - Milliseconds since last received Router Advertisement containing this prefix 236 - Preferred lifetime in seconds only if prefix is on-link 237 - Route preference (low, med, high) only if prefix is route (not on-link) 238 - The router IPv6 address which advertising this prefix [all …]
|
/openthread-3.7.0/src/posix/platform/ |
D | firewall.cpp | 88 otIp6Prefix prefix; in UpdateIpSets() local 106 memcpy(prefix.mPrefix.mFields.m8, otThreadGetMeshLocalPrefix(aInstance)->m8, in UpdateIpSets() 108 prefix.mLength = OT_IP6_PREFIX_BITSIZE; in UpdateIpSets() 109 otIp6PrefixToString(&prefix, prefixBuf, sizeof(prefixBuf)); in UpdateIpSets()
|
/openthread-3.7.0/src/core/border_router/ |
D | routing_manager.cpp | 682 Ip6::Prefix prefix; in IsValidOnLinkPrefix() local 684 aPio.GetPrefix(prefix); in IsValidOnLinkPrefix() 686 return IsValidOnLinkPrefix(prefix) && aPio.IsOnLinkFlagSet() && aPio.IsAutoAddrConfigFlagSet(); in IsValidOnLinkPrefix() 1066 Ip6::Prefix prefix; in ProcessRaHeader() local 1112 prefix.Clear(); in ProcessRaHeader() 1113 entry = aRouter.mRoutePrefixes.FindMatching(prefix); in ProcessRaHeader() 1147 Ip6::Prefix prefix; in ProcessPrefixInfoOption() local 1151 aPio.GetPrefix(prefix); in ProcessPrefixInfoOption() 1155 … LogInfo("- PIO %s - ignore since not a valid on-link prefix", prefix.ToString().AsCString()); in ProcessPrefixInfoOption() 1159 VerifyOrExit(prefix != Get<RoutingManager>().mOnLinkPrefixManager.GetLocalPrefix()); in ProcessPrefixInfoOption() [all …]
|
/openthread-3.7.0/third_party/mbedtls/repo/library/ |
D | x509_csr.c | 528 int mbedtls_x509_csr_info(char *buf, size_t size, const char *prefix, in mbedtls_x509_csr_info() argument 540 prefix, csr->version); in mbedtls_x509_csr_info() 543 ret = mbedtls_snprintf(p, n, "\n%ssubject name : ", prefix); in mbedtls_x509_csr_info() 548 ret = mbedtls_snprintf(p, n, "\n%ssigned using : ", prefix); in mbedtls_x509_csr_info() 560 ret = mbedtls_snprintf(p, n, "\n%s%-" BC "s: %d bits\n", prefix, key_size_str, in mbedtls_x509_csr_info() 569 ret = mbedtls_snprintf(p, n, "\n%ssubject alt name :", prefix); in mbedtls_x509_csr_info() 574 prefix)) != 0) { in mbedtls_x509_csr_info() 580 ret = mbedtls_snprintf(p, n, "\n%scert. type : ", prefix); in mbedtls_x509_csr_info() 589 ret = mbedtls_snprintf(p, n, "\n%skey usage : ", prefix); in mbedtls_x509_csr_info()
|
/openthread-3.7.0/src/core/thread/ |
D | network_data.cpp | 327 OnMeshPrefixConfig prefix; in ContainsOnMeshPrefix() local 329 while (GetNextOnMeshPrefix(iterator, aPrefix.mRloc16, prefix) == kErrorNone) in ContainsOnMeshPrefix() 331 if (prefix == aPrefix) in ContainsOnMeshPrefix() 385 OnMeshPrefixConfig prefix; in ContainsEntriesFrom() local 389 config.mOnMeshPrefix = &prefix; in ContainsEntriesFrom() 501 OnMeshPrefixConfig prefix; in FindRlocs() local 510 config.mOnMeshPrefix = &prefix; in FindRlocs() 526 matches = prefix.mOnMesh && (prefix.mDefaultRoute || prefix.mDp); in FindRlocs() 532 AddRloc16ToRlocs(prefix.mRloc16, aRlocs, aRoleFilter); in FindRlocs()
|
D | network_data_leader_ftd.cpp | 313 const PrefixTlv *prefix = As<PrefixTlv>(cur); in Validate() local 315 VerifyOrExit(prefix->IsValid(), error = kErrorParse); in Validate() 318 …VerifyOrExit(validatedSegment.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()) == nullpt… in Validate() 321 SuccessOrExit(error = ValidatePrefix(*prefix, aRloc16)); in Validate() 980 PrefixTlv *prefix = As<PrefixTlv>(cur); in RemoveRloc() local 982 aExcludeNetworkData.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()); in RemoveRloc() 984 RemoveRlocInPrefix(*prefix, aRloc16, aMatchMode, excludePrefix, aChangedFlags); in RemoveRloc() 986 if (UpdatePrefix(*prefix) == kTlvRemoved) in RemoveRloc() 1177 PrefixTlv *prefix; in RemoveContext() local 1179 while ((prefix = NetworkDataTlv::Find<PrefixTlv>(start, GetTlvsEnd())) != nullptr) in RemoveContext() [all …]
|
/openthread-3.7.0/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | crypto_knowledge.py | 377 prefix = head 378 while prefix: 379 if prefix in self.CATEGORY_FROM_HEAD: 380 return self.CATEGORY_FROM_HEAD[prefix] 381 if re.match(r'.*[0-9]\Z', prefix): 382 prefix = re.sub(r'_*[0-9]+\Z', r'', prefix) 384 prefix = re.sub(r'_*[^_]*\Z', r'', prefix)
|