/openthread-3.4.0/tests/scripts/thread-cert/ |
D | test_srp_register_services_diff_lease.py | 104 service = services[0] 105 self.assertEqual(service['fullname'], 'ins1._test._udp.default.service.arpa.') 106 self.assertEqual(service['deleted'], 'false') 107 self.assertEqual(int(service['ttl']), 60) 108 self.assertEqual(int(service['lease']), 60) 109 self.assertEqual(int(service['key-lease']), 800) 122 for service in server_services: 123 if service['fullname'] == 'ins1._test._udp.default.service.arpa.': 124 self.assertEqual(service['deleted'], 'false') 125 self.assertEqual(int(service['ttl']), 60) [all …]
|
D | test_dnssd_name_with_special_chars.py | 104 … service = client.dns_resolve_service(SPECIAL_INSTANCE_NAME, '_srv._udp.default.service.arpa') 105 self.__verify_service(service) 107 …service = client.dns_resolve_service(SPECIAL_INSTANCE_NAME.lower(), '_srv._udp.default.service.arp… 108 self.__verify_service(service) 110 def __verify_service(self, service): argument 111 logging.info('service discovered: %r', service) 112 self.assertEqual(service['port'], 1977) 113 self.assertEqual(service['host'], 'host1.default.service.arpa.')
|
D | test_srp_register_500_services.py | 161 all_registered = all(service['state'] == 'Registered' for service in client_services) 171 for service in client_services: 172 self.assertEqual(service['name'], SERVICE_NAME) 173 self.assertEqual(service['state'], 'Registered') 174 self.assertEqual(int(service['port']), SERVICE_PORT) 175 self.assertIn(service['instance'], service_instance_names) 176 service_instance_names.discard(service['instance']) 186 for service in server_services: 187 self.assertEqual(service['name'], SERVICE_NAME) 188 self.assertIn(service['instance'], service_instance_names) [all …]
|
D | test_srp_many_services_mtu_check.py | 116 for service in client_services: 117 self.assertEqual(service['state'], 'Registered') 136 for service in server_services: 137 self.assertEqual(service['deleted'], 'true')
|
D | test_netdata_publisher.py | 133 def verify_anycast_service(self, service): argument 136 self.assertEqual(int(service[0]), THREAD_ENTERPRISE_NUMBER) 138 service_data = bytes.fromhex(service[1]) 143 self.assertEqual(service[3], 's') 147 for service in services: 148 self.verify_anycast_service(service) 150 def verify_unicast_service(self, service): argument 153 self.assertEqual(int(service[0]), THREAD_ENTERPRISE_NUMBER) 155 service_data = bytes.fromhex(service[1]) 159 self.assertEqual(service[3], 's') [all …]
|
D | test_network_data.py | 118 def convert_service_to_bytearray(service): argument 121 ((service.t & 0x01) << 7) | ((service.id) & 0x0F), 122 service.enterprise_number, 123 service.service_data_length, 124 ) + service.service_data + convert_service_sub_tlvs_to_bytearray(service.sub_tlvs)) 893 service = network_data.Service( 904 actual_t = service.t 913 service = network_data.Service( 924 actual_id = service.id 933 service = network_data.Service( [all …]
|
D | node.py | 1173 service = {} 1175 service['fullname'] = lines.pop(0).strip() 1176 name_labels = service['fullname'].split('.') 1177 service['instance'] = name_labels[0] 1178 service['name'] = '.'.join(name_labels[1:3]) 1180 service['deleted'] = lines.pop(0).strip().split(':')[1].strip() 1181 if service['deleted'] == 'true': 1182 service_list.append(service) 1188 service[key_value[0].strip()] = key_value[1].strip() 1192 service['TXT'] = [txt for txt in txt_entries if txt] [all …]
|
/openthread-3.4.0/tests/toranj/cli/ |
D | test-400-srp-client-server.py | 95 service = services[0] variable 96 verify(service['instance'] == 'ins') 97 verify(service['name'] == '_test._udp') 98 verify(service['state'] == 'Registered') 99 verify(service['port'] == '777') 100 verify(service['priority'] == '2') 101 verify(service['weight'] == '1') 114 service = services[0] variable 115 verify(service['instance'] == 'ins') 116 verify(service['name'] == '_test._udp') [all …]
|
D | cli.py | 672 service = {} 673 service['fullname'] = outputs.pop(0).strip() 674 name_labels = service['fullname'].split('.') 675 service['instance'] = name_labels[0] 676 service['name'] = '.'.join(name_labels[1:3]) 677 service['deleted'] = outputs.pop(0).strip().split(':')[1].strip() 678 if service['deleted'] == 'true': 679 service_list.append(service) 684 service[key_value[0].strip()] = key_value[1].strip() 687 service['TXT'] = [txt for txt in txt_entries if txt] [all …]
|
/openthread-3.4.0/tools/harness-simulation/posix/etc/ |
D | server.patch | 8 elif have service; then 9 sudo service rsyslog status || sudo service rsyslog start || die 'Failed to start rsyslog!' 10 sudo service dbus status || sudo service dbus start || die 'Failed to start dbus!' 12 …sudo service avahi-daemon status || sudo service avahi-daemon start || die 'Failed to start avahi!' 13 …sudo service otbr-agent status || sudo service otbr-agent start || die 'Failed to start otbr-agent… 14 …without WEB_GUI || sudo service otbr-web status || sudo service otbr-web start || die 'Failed to s… 15 + sudo service commissionerd status || sudo service commissionerd start || die 'Failed to st… 17 die 'Unable to find service manager. Try script/console to start in console mode!'
|
/openthread-3.4.0/src/cli/ |
D | README_SRP.md | 57 Join the Thread Network and register a `_ipps._tcp` service: 80 > srp client service add my-service _ipps._tcp 12345 105 ### Verify the service status 107 Check if the host and service has been successfully registered on the client node: 113 > srp client service 114 instance:"my-service", name:"_ipps._tcp", state:Registered, port:12345, priority:0, weight:0 118 Make sure it shows `state:Registered` for both host and service commands. 120 Check the host & service on the server node: 124 my-host.default.service.arpa. 128 > srp server service [all …]
|
D | README_SRP_CLIENT.md | 14 - [service](#service) 36 service 107 When service `ins2` is removed: 115 Removed service list: 126 Removed service list: 216 The possible states are (same value for service state): 324 ### service subsection 326 Usage: `srp client service` 331 > srp client service 337 ### service add [all …]
|
D | README_SRP_SERVER.md | 17 - [service](#service) 38 service 89 default.service.arpa. 96 > srp server domain thread.service.arpa. 119 srp-api-test-1.default.service.arpa. 122 srp-api-test-0.default.service.arpa. 167 ### service subsection 169 Usage: `srp server service` 176 > srp server service 177 srp-api-test-1._ipps._tcp.default.service.arpa. [all …]
|
D | cli_srp_server.cpp | 297 const otSrpServerService *service = nullptr; in Process() local 299 …while ((service = otSrpServerHostFindNextService(host, service, OT_SRP_SERVER_FLAGS_BASE_TYPE_SERV… in Process() 302 bool isDeleted = otSrpServerServiceIsDeleted(service); in Process() 303 const char *instanceName = otSrpServerServiceGetInstanceName(service); in Process() 318 otSrpServerServiceGetLeaseInfo(service, &leaseInfo); in Process() 335 OutputLine(kIndentSize, "port: %u", otSrpServerServiceGetPort(service)); in Process() 336 OutputLine(kIndentSize, "priority: %u", otSrpServerServiceGetPriority(service)); in Process() 337 OutputLine(kIndentSize, "weight: %u", otSrpServerServiceGetWeight(service)); in Process() 338 OutputLine(kIndentSize, "ttl: %lu", ToUlong(otSrpServerServiceGetTtl(service))); in Process() 342 txtData = otSrpServerServiceGetTxtData(service, &txtDataLength); in Process()
|
D | cli_srp_client.cpp | 303 const otSrpClientService *service; in Process() local 307 …for (service = otSrpClientGetServices(GetInstancePtr()); service != nullptr; service = service->mN… in Process() 309 if ((aArgs[1] == service->mInstanceName) && (aArgs[2] == service->mName)) in Process() 315 VerifyOrExit(service != nullptr, error = OT_ERROR_NOT_FOUND); in Process() 319 … error = otSrpClientRemoveService(GetInstancePtr(), const_cast<otSrpClientService *>(service)); in Process() 323 …Exit(error = otSrpClientClearService(GetInstancePtr(), const_cast<otSrpClientService *>(service))); in Process() 326 … const_cast<otSrpClientService *>(service))); in Process() 597 for (const otSrpClientService *service = aRemovedServices; service != nullptr; service = next) in HandleCallback() local 599 next = service->mNext; in HandleCallback() 602 … const_cast<otSrpClientService *>(service))); in HandleCallback()
|
D | README.md | 111 - [service](#service) 303 …. `bbr register` should be issued explicitly to register Backbone Router service to Leader for Sec… 341 Print border agent service port. 1145 …ort\] \[response timeout (ms)\] \[max tx attempts\] \[recursion desired (boolean)\] \[service mode] 1230 ### dns browse \<service-name\> \[DNS server IP\] \[DNS server port\] \[response timeout (ms)\] \[m… 1232 Send a browse (service instance enumeration) DNS query to get the list of services for given servic… 1234 The parameters after `service-name` are optional. Any unspecified (or zero) value for these optiona… 1253 > dns browse _airplay._tcp.default.service.arpa 1254 DNS browse response for _airplay._tcp.default.service.arpa. 1257 Host:Gabes-Mac-mini.default.service.arpa. [all …]
|
/openthread-3.4.0/src/core/net/ |
D | srp_server.cpp | 370 for (const Service &service : aHost.mServices) in HasNameConflictsWith() local 378 if (host.HasServiceInstance(service.GetInstanceName()) && in HasNameConflictsWith() 381 … LogWarn("Name conflict: service name %s has already been allocated", service.GetInstanceName()); in HasNameConflictsWith() 464 for (Service &service : aHost.mServices) in CommitSrpUpdate() 466 service.mDescription->mLease = grantedLease; in CommitSrpUpdate() 467 service.mDescription->mKeyLease = grantedKeyLease; in CommitSrpUpdate() 468 service.mDescription->mTtl = grantedTtl; in CommitSrpUpdate() 485 for (Service &service : existingHost->mServices) in CommitSrpUpdate() 487 existingHost->RemoveService(&service, kRetainName, kDoNotNotifyServiceHandler); in CommitSrpUpdate() 500 for (Service &service : aHost.GetServices()) in CommitSrpUpdate() [all …]
|
D | srp_client.cpp | 606 for (Service &service : mServices) in RemoveHostAndServices() 608 UpdateServiceStateToRemove(service); in RemoveHostAndServices() 690 for (Service &service : mServices) in ChangeHostAndServiceStates() 692 if ((aMode == kForServicesAppendedInMessage) && !service.IsAppendedInMessage()) in ChangeHostAndServiceStates() 697 service.SetState(aNewStates[service.GetState()]); in ChangeHostAndServiceStates() 957 for (Service &service : mServices) in AppendServiceInstructions() 959 service.MarkAsAppendedInMessage(); in AppendServiceInstructions() 975 for (Service &service : mServices) in AppendServiceInstructions() 977 uint32_t lease = DetermineLeaseInterval(service.GetLease(), mDefaultLease); in AppendServiceInstructions() 978 … uint32_t keyLease = Max(DetermineLeaseInterval(service.GetKeyLease(), mDefaultKeyLease), lease); in AppendServiceInstructions() [all …]
|
/openthread-3.4.0/tests/scripts/thread-cert/border_router/ |
D | test_advertising_proxy.py | 263 service = host.discover_mdns_service(service_instance, '_ipps._tcp', 'my-host') 264 self.assertIsNotNone(service) 265 self.assertEqual(service['instance'], service_instance) 266 self.assertEqual(service['name'], '_ipps._tcp') 267 self.assertEqual(service['port'], service_port) 268 self.assertEqual(service['priority'], 0) 269 self.assertEqual(service['weight'], 0) 270 self.assertEqual(service['host'], 'my-host') 271 self.assertEqual(len(service['addresses']), len(host_addrs)) 272 self.assertEqual(sorted(map(ipaddress.ip_address, service['addresses'])), [all …]
|
D | test_publish_meshcop_service.py | 141 for service in services: 142 if service['txt']['nn'] == br.get_network_name(): 143 self.check_meshcop_service_by_data(br, service) 144 return service
|
D | test_dnssd_instance_name_with_space.py | 216 service = services[INSTANCE_NAME] 217 logging.info("Service Browse Result: %r", service) 218 self.assertEqual(service['host'], HOST_FULL_NAME)
|
/openthread-3.4.0/tools/otci/tests/ |
D | test_otci.py | 482 for service in srp_server_services: 483 if service['instance'] == 'ins1._ipps._tcp.default.service.arpa.': 484 self.assertEqual(False, service['deleted']) 485 self.assertEqual(1000, service['port']) 486 self.assertEqual(1, service['priority']) 487 self.assertEqual(1, service['weight']) 488 self.assertEqual('host1.default.service.arpa.', service['host']) 490 ipaddress.IPv6Address('2001::2')}, set(service['addresses'])) 491 … self.assertEqual({'txt11': b'val11', 'txt12': b'val12', 'txt13': True}, service['txt']) 492 elif service['instance'] == 'ins2._meshcop._udp.default.service.arpa.': [all …]
|
/openthread-3.4.0/src/core/thread/ |
D | network_data.cpp | 284 const ServiceTlv *service = As<ServiceTlv>(cur); in Iterate() local 305 aConfig.mService->SetFrom(*service, *server); in Iterate() 360 ServiceConfig service; in ContainsService() local 362 while (GetNextService(iterator, aService.GetServerConfig().mRloc16, service) == kErrorNone) in ContainsService() 364 if (service == aService) in ContainsService() 384 ServiceConfig service; in ContainsEntriesFrom() local 388 config.mService = &service; in ContainsEntriesFrom() 430 ServiceTlv *service = As<ServiceTlv>(cur); in RemoveTemporaryData() local 432 RemoveTemporaryDataIn(*service); in RemoveTemporaryData() 434 if (service->GetSubTlvsLength() == 0) in RemoveTemporaryData()
|
D | network_data_leader_ftd.cpp | 412 const ServiceTlv *service = As<ServiceTlv>(cur); in Validate() local 415 VerifyOrExit(service->IsValid(), error = kErrorParse); in Validate() 417 service->GetServiceData(serviceData); in Validate() 421 VerifyOrExit(validatedSegment.FindService(service->GetEnterpriseNumber(), serviceData, in Validate() 425 SuccessOrExit(error = ValidateService(*service, aRloc16)); in Validate() 962 const ServiceTlv *service; in FindServiceById() local 965 while ((service = tlvIterator.Iterate<ServiceTlv>()) != nullptr) in FindServiceById() 967 if (service->GetServiceId() == aServiceId) in FindServiceById() 973 return service; in FindServiceById() 1019 ServiceTlv *service = As<ServiceTlv>(cur); in RemoveRloc() local [all …]
|
/openthread-3.4.0/tests/unit/ |
D | test_srp_server.cpp | 717 const Srp::Server::Service *service; in TestUpdateLeaseShortVariant() local 817 service = srpServer->GetNextHost(nullptr)->GetServices().GetHead(); in TestUpdateLeaseShortVariant() 818 VerifyOrQuit(service != nullptr); in TestUpdateLeaseShortVariant() 819 VerifyOrQuit(service->GetLease() == 15u * 3600); in TestUpdateLeaseShortVariant() 820 VerifyOrQuit(service->GetKeyLease() == 15u * 3600); in TestUpdateLeaseShortVariant() 873 service = srpServer->GetNextHost(nullptr)->GetServices().GetHead(); in TestUpdateLeaseShortVariant() 874 VerifyOrQuit(service != nullptr); in TestUpdateLeaseShortVariant() 875 VerifyOrQuit(service->GetLease() == 27u * 3600); in TestUpdateLeaseShortVariant() 876 VerifyOrQuit(service->GetKeyLease() == 27u * 3600); in TestUpdateLeaseShortVariant()
|