/openthread-latest/tests/scripts/thread-cert/ |
D | test_on_mesh_prefix.py | 94 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 95 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 96 for addr in addrs: 97 if addr[0:3] == '200': 98 self.assertTrue(self.nodes[LEADER].ping(addr)) 101 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 102 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 103 for addr in addrs: 104 if addr[0:3] == '200': 105 self.assertTrue(self.nodes[LEADER].ping(addr)) [all …]
|
D | test_srp_auto_host_address.py | 121 client_addresses = [addr.strip() for addr in client.get_addrs()] 132 client_addresses = [addr.strip() for addr in client.get_addrs()] 145 …slaac_addr = [addr.strip() for addr in client.get_addrs() if addr.strip().startswith('fd00:abba:ca… 157 …slaac_addr = [addr.strip() for addr in client.get_addrs() if addr.strip().startswith('fd00:9:8:7:'… 170 …slaac_addr = [addr.strip() for addr in client.get_addrs() if addr.strip().startswith('fd00:a:b:c:'… 227 …slaac_addr = [addr.strip() for addr in client.get_addrs() if addr.strip().startswith('fd00:9:8:7:'… 259 …slaac_addr = [addr.strip() for addr in client.get_addrs() if addr.strip().startswith('fd00:9:8:7:'… 275 host_addresses = [addr.strip() for addr in server_host['addresses']] 294 return [addr.strip() for addr in server_host['addresses']] 305 …client_addresses = [addr.split(' ')[0] for addr in client.get_addrs(verbose=True) if 'preferred:1'… [all …]
|
D | simulator.py | 196 addr = ('127.0.0.1', self.port + nodeid) 202 self.devices[addr]['msgs'] += messages 227 addr = ('127.0.0.1', self.port + nodeid) 229 messages = self.devices[addr]['msgs'] 230 self.devices[addr]['msgs'] = [] 236 def _is_radio(self, addr): argument 237 return addr[1] < self.BASE_PORT * 2 239 def _to_core_addr(self, addr): argument 240 assert self._is_radio(addr) 241 return (addr[0], addr[1] + self.BASE_PORT) [all …]
|
D | Cert_5_6_06_NetworkDataExpiration.py | 104 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 105 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 106 self.assertTrue(any('2001:2:0:3' in addr[0:10] for addr in addrs)) 107 for addr in addrs: 108 if addr[0:3] == '200': 109 self.assertTrue(self.nodes[LEADER].ping(addr)) 112 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 113 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 114 self.assertTrue(any('2001:2:0:3' in addr[0:10] for addr in addrs)) 115 for addr in addrs: [all …]
|
D | find_border_agents.py | 43 addr = None variable in BorderAgent 51 return str([self.alias, self.addr, self.port, self.thread_status]) 54 def get_ipaddr_priority(addr: ipaddress.IPv6Address): 56 if addr.is_link_local: 59 if not addr.is_global: 87 addr = ipaddress.ip_address(record.address) 88 … if not isinstance(addr, ipaddress.IPv6Address) or addr.is_multicast or addr.is_loopback: 91 … if not ba.addr or get_ipaddr_priority(addr) > get_ipaddr_priority(ipaddress.IPv6Address(ba.addr)): 92 ba.addr = str(addr)
|
D | Cert_5_6_05_NetworkDataRegisterAfterAttachRouter.py | 103 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 104 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 105 self.assertTrue(any('2001:2:0:3' in addr[0:10] for addr in addrs)) 106 for addr in addrs: 107 if addr[0:3] == '200': 108 self.assertTrue(self.nodes[LEADER].ping(addr)) 111 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 112 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 113 self.assertTrue(any('2001:2:0:3' in addr[0:10] for addr in addrs)) 114 for addr in addrs: [all …]
|
D | Cert_5_6_03_NetworkDataRegisterAfterAttachLeader.py | 101 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 102 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 103 for addr in addrs: 104 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 105 self.assertTrue(self.nodes[LEADER].ping(addr)) 108 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 109 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 110 for addr in addrs: 111 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 112 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_5_6_04_NetworkDataRegisterAfterAttachRouter.py | 101 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 102 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 103 for addr in addrs: 104 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 105 self.assertTrue(self.nodes[LEADER].ping(addr)) 108 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 109 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 110 for addr in addrs: 111 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 112 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_6_3_02_NetworkDataUpdate.py | 75 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 76 for addr in addrs: 77 if addr[0:10] == '2001:2:0:1': 78 self.assertTrue(self.nodes[LEADER].ping(addr)) 96 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 97 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 98 for addr in addrs: 99 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 100 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_7_1_04_BorderRouterAsRouter.py | 101 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 102 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 103 for addr in addrs: 104 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 105 self.assertTrue(self.nodes[LEADER].ping(addr)) 108 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 109 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 110 for addr in addrs: 111 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 112 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_5_6_02_NetworkDataRegisterBeforeAttachRouter.py | 99 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 100 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 101 for addr in addrs: 102 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 103 self.assertTrue(self.nodes[LEADER].ping(addr)) 106 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 107 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 108 for addr in addrs: 109 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 110 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_7_1_02_BorderRouterAsRouter.py | 100 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 101 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 102 for addr in addrs: 103 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 104 self.assertTrue(self.nodes[LEADER].ping(addr)) 107 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 108 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 109 for addr in addrs: 110 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 111 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_5_6_01_NetworkDataRegisterBeforeAttachLeader.py | 102 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 103 self.assertTrue(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 104 for addr in addrs: 105 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 106 self.assertTrue(self.nodes[LEADER].ping(addr)) 109 self.assertTrue(any('2001:2:0:1' in addr[0:10] for addr in addrs)) 110 self.assertFalse(any('2001:2:0:2' in addr[0:10] for addr in addrs)) 111 for addr in addrs: 112 if addr[0:10] == '2001:2:0:1' or addr[0:10] == '2001:2:0:2': 113 self.assertTrue(self.nodes[LEADER].ping(addr))
|
D | Cert_5_3_08_ChildAddressSet.py | 128 addr = self.nodes[MED2].get_addr("2001::/64") 129 self.assertTrue(addr is not None) 130 self.assertTrue(self.nodes[MED1].ping(addr)) 135 addr = self.nodes[MED2].get_addr("2002::/64") 136 self.assertTrue(addr is not None) 137 self.assertTrue(self.nodes[MED1].ping(addr)) 143 addr = self.nodes[MED2].get_addr("2003::/64") 144 self.assertTrue(addr is not None) 145 self.assertTrue(self.nodes[MED1].ping(addr)) 165 for addr in pv.vars['MED_%d_IPADDRS' % i]: [all …]
|
/openthread-latest/tests/scripts/expect/ |
D | v1_2-linkmetricsmgr.exp | 45 set addr [get_ipaddr mleid] 48 send "ping $addr\n" 49 expect "16 bytes from $addr: icmp_seq=1" 77 send "ping $addr\n" 78 expect "16 bytes from $addr: icmp_seq=" 82 send "ping $addr\n" 83 expect "16 bytes from $addr: icmp_seq=" 100 send "ping $addr\n" 101 expect "16 bytes from $addr: icmp_seq=" 105 send "ping $addr\n" [all …]
|
D | cli-ping.exp | 53 set addr [get_ipaddr mleid] 56 send "ping $addr\n" 57 expect "16 bytes from $addr: icmp_seq=1" 58 send "ping $addr 20 10 0.00123456 255\n" 60 expect "28 bytes from $addr: icmp_seq=$i"
|
/openthread-latest/tests/scripts/thread-cert/pktverify/ |
D | addrs.py | 40 def __init__(self, addr: Union[str, bytearray, 'Bytes']): 41 super().__init__(addr) 43 raise ValueError((addr, self)) 57 def __init__(self, addr: Union[str, bytearray, 'Bytes']): 58 super().__init__(addr) 60 raise ValueError((addr, self)) 74 def __init__(self, addr: Union[str, bytearray, 'Bytes']): 75 if isinstance(addr, str): 78 addr = Ipv6Addr._expand(addr) 82 super().__init__(addr) [all …]
|
/openthread-latest/tests/toranj/cli/ |
D | test-015-clear-addresss-cache-for-sed.py | 118 r1_address = next(addr for addr in r1.get_ip_addrs() if addr.startswith('fd00:abba:')) 119 r2_address = next(addr for addr in r2.get_ip_addrs() if addr.startswith('fd00:abba:')) 120 r3_address = next(addr for addr in r3.get_ip_addrs() if addr.startswith('fd00:abba:')) 121 c_address = next(addr for addr in c.get_ip_addrs() if addr.startswith('fd00:abba:'))
|
D | test-027-slaac-address.py | 63 matched_addrs = [addr for addr in ip_addrs if addr.startswith(prefix)] 65 addr = matched_addrs[0] 66 verify('origin:' + origin in addr) 67 verify('plen:64' in addr) 68 verify('valid:1' in addr) 70 verify('preferred:1' in addr) 72 verify('preferred:0' in addr) 78 matched_addrs = [addr for addr in ip_addrs if addr.startswith(prefix)]
|
/openthread-latest/examples/platforms/simulation/ |
D | mdns_socket.c | 105 struct sockaddr_in addr; in OpenIp4Socket() local 155 memset(&addr, 0, sizeof(addr)); in OpenIp4Socket() 156 addr.sin_family = AF_INET; in OpenIp4Socket() 157 addr.sin_addr.s_addr = htonl(INADDR_ANY); in OpenIp4Socket() 158 addr.sin_port = htons(MDNS_PORT); in OpenIp4Socket() 160 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr)); in OpenIp4Socket() 313 struct sockaddr_in addr; in otPlatMdnsSendMulticast() local 315 memset(&addr, 0, sizeof(addr)); in otPlatMdnsSendMulticast() 316 addr.sin_family = AF_INET; in otPlatMdnsSendMulticast() 317 addr.sin_addr.s_addr = inet_addr("224.0.0.251"); in otPlatMdnsSendMulticast() [all …]
|
/openthread-latest/tests/unit/ |
D | test_toolchain_c.c | 45 otNetifAddress addr; in CreateNetif_c() local 46 memset(&addr, 0, sizeof(addr)); in CreateNetif_c() 47 addr.mScopeOverrideValid = true; in CreateNetif_c() 48 return addr; in CreateNetif_c()
|
D | test_mac_frame.cpp | 86 Mac::Address addr; in TestMacAddress() local 131 VerifyOrQuit(addr.IsNone(), "Address constructor failed"); in TestMacAddress() 132 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeNone); in TestMacAddress() 134 addr.SetShort(kShortAddr); in TestMacAddress() 135 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeShort); in TestMacAddress() 136 VerifyOrQuit(addr.IsShort(), "Address::SetShort() failed"); in TestMacAddress() 137 VerifyOrQuit(!addr.IsExtended(), "Address::SetShort() failed"); in TestMacAddress() 138 VerifyOrQuit(addr.GetShort() == kShortAddr); in TestMacAddress() 140 addr.SetExtended(extAddr); in TestMacAddress() 141 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeExtended); in TestMacAddress() [all …]
|
/openthread-latest/src/posix/platform/ |
D | infra_if.cpp | 72 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in otPlatInfraIfHasAddress() local 76 if (if_nametoindex(addr->ifa_name) != aInfraIfIndex || addr->ifa_addr == nullptr || in otPlatInfraIfHasAddress() 77 addr->ifa_addr->sa_family != AF_INET6) in otPlatInfraIfHasAddress() 82 ip6Addr = reinterpret_cast<sockaddr_in6 *>(addr->ifa_addr); in otPlatInfraIfHasAddress() 197 struct sockaddr_nl addr; in CreateNetLinkSocket() local 202 memset(&addr, 0, sizeof(addr)); in CreateNetLinkSocket() 203 addr.nl_family = AF_NETLINK; in CreateNetLinkSocket() 204 addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV6_IFADDR; in CreateNetLinkSocket() 206 rval = bind(sock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)); in CreateNetLinkSocket() 340 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in CountAddresses() local [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/ssl/ |
D | mini_client.c | 146 struct sockaddr_in addr; in main() local 222 memset(&addr, 0, sizeof(addr)); in main() 223 addr.sin_family = AF_INET; in main() 226 addr.sin_port = *((char *) &ret) == ret ? PORT_LE : PORT_BE; in main() 227 addr.sin_addr.s_addr = *((char *) &ret) == ret ? ADDR_LE : ADDR_BE; in main() 236 (const struct sockaddr *) &addr, sizeof(addr)) < 0) { in main()
|
/openthread-latest/src/core/thread/ |
D | mlr_manager.cpp | 95 for (Ip6::Netif::ExternalMulticastAddress &addr : in UpdateLocalSubscriptions() 98 …if (addr.GetMlrState() == kMlrStateToRegister && IsAddressMlrRegisteredByAnyChild(addr.GetAddress(… in UpdateLocalSubscriptions() 100 addr.SetMlrState(kMlrStateRegistered); in UpdateLocalSubscriptions() 115 …for (const Ip6::Netif::ExternalMulticastAddress &addr : Get<ThreadNetif>().IterateExternalMulticas… in IsAddressMlrRegisteredByNetif() local 117 if (addr.GetAddress() == aAddress && addr.GetMlrState() == kMlrStateRegistered) in IsAddressMlrRegisteredByNetif() 233 for (Ip6::Netif::ExternalMulticastAddress &addr : in SendMlr() 241 if (addr.GetMlrState() == kMlrStateToRegister) in SendMlr() 243 addresses.AddUnique(addr.GetAddress()); in SendMlr() 244 addr.SetMlrState(kMlrStateRegistering); in SendMlr() 518 for (Ip6::Netif::ExternalMulticastAddress &addr : in SetMulticastAddressMlrState() [all …]
|