/openthread-2.7.6/tests/toranj/ |
D | test-036-wpantund-host-route-management.py | 77 r1 = wpan.Node() variable 100 r1.form("route-test") 102 r1.allowlist_node(r2) 103 r2.allowlist_node(r1) 104 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 114 r3.allowlist_node(r1) 115 r1.allowlist_node(r3) 145 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_AUTO_ADD_ON_INTERFACE) == 'true') 146 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED) == 'true') 152 verify_interface_routes(r1, []) [all …]
|
D | test-601-channel-manager-channel-change.py | 62 r1 = wpan.Node() variable 70 all_nodes = [r1, r2, r3, sc1, ec1, sc2, sc3] 83 r1.allowlist_node(r2) 84 r2.allowlist_node(r1) 85 r1.allowlist_node(r3) 86 r3.allowlist_node(r1) 88 r1.allowlist_node(sc1) 89 r1.allowlist_node(ec1) 93 r1.form('channel-manager', channel=12) 94 r2.join_node(r1, node_type=wpan.JOIN_TYPE_ROUTER) [all …]
|
D | test-023-multicast-traffic.py | 99 r1 = wpan.Node() variable 106 all_routers = [r1, r2, r3, r4] 125 r1.form("mcast-traffic") 127 r1.allowlist_node(r2) 128 r2.allowlist_node(r1) 129 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 151 ml1 = r1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 152 ll1 = r1.get(wpan.WPAN_IP6_LINK_LOCAL_ADDRESS)[1:-1] 175 ml_prefix = r1.get(wpan.WPAN_IP6_MESH_LOCAL_PREFIX)[1:-1].split('/')[0] 187 send_mcast(r2, ll2, ll_all_nodes, [r1, r2, r3, fed], [r4, sed]) [all …]
|
D | test-037-wpantund-auto-add-route-for-on-mesh-prefix.py | 73 r1 = wpan.Node() variable 86 r1.form("prefix-route") 88 r1.allowlist_node(r2) 89 r2.allowlist_node(r1) 90 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 121 verify(r1.get(wpan.WPAN_DAEMON_ON_MESH_PREFIX_AUTO_ADD_AS_INTERFACE_ROUTE) == 'true') 123 r1.set(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_AUTO_ADD_ON_INTERFACE, 'false') 124 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_AUTO_ADD_ON_INTERFACE) == 'false') 135 verify_interface_routes(r1, [(PREFIX1, LEN1, MEDIUM_METRIC), (PREFIX2, LEN2, MEDIUM_METRIC)]) 149 verify_interface_routes(r1, []) [all …]
|
D | test-024-partition-merge.py | 100 r1 = wpan.Node() variable 114 r1.form("partition") 116 r1.allowlist_node(r2) 117 r2.allowlist_node(r1) 118 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 120 c1.allowlist_node(r1) 121 r1.allowlist_node(c1) 122 c1.join_node(r1, wpan.JOIN_TYPE_END_DEVICE) 139 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) 144 r1.un_allowlist_node(r2) [all …]
|
D | test-028-router-leader-reset-recovery.py | 64 r1 = wpan.Node() variable 78 r1.form("RtrLderRst") 80 r1.allowlist_node(r2) 81 r2.allowlist_node(r1) 82 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 98 verify_neighbor_table(r1, [r2]) 99 verify_neighbor_table(r2, [r1]) 104 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) 113 verify_neighbor_table(r2, [r1]) 117 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) [all …]
|
D | test-038-clear-address-cache-for-sed.py | 49 r1 = wpan.Node() variable 74 r1.form("addr-cache") 76 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True, preferred=True) 78 r1.allowlist_node(r2) 79 r2.allowlist_node(r1) 80 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 87 r3.allowlist_node(r1) 88 r1.allowlist_node(r3) 89 r3.join_node(r1, wpan.JOIN_TYPE_ROUTER) 103 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) [all …]
|
D | test-013-off-mesh-route-traffic.py | 64 r1 = wpan.Node() variable 69 all_nodes = [r1, fed1, r2, sed2] 90 r1.allowlist_node(r2) 91 r2.allowlist_node(r1) 93 r1.allowlist_node(fed1) 94 fed1.allowlist_node(r1) 99 r1.form("off-mesh") 100 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 102 fed1.join_node(r1, wpan.JOIN_TYPE_END_DEVICE) 122 r1.config_gateway(ON_MESH_PREFIX) [all …]
|
D | test-015-same-prefix-on-multiple-nodes.py | 46 r1 = wpan.Node() variable 50 all_nodes = [r1, r2, sed2] 63 r1.allowlist_node(r2) 64 r2.allowlist_node(r1) 69 r1.form("same-prefix") 71 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 94 for node in [r1, r2]: 103 raise wpan.VerifyError('Did not find prefix {} on node {}'.format(IP6_PREFIX, r1)) 109 r1.add_ip6_address_on_interface(IP6_ADDR_1, prefix_len=64) 121 r1.reset() [all …]
|
D | test-025-network-data-timeout.py | 111 r1 = wpan.Node() variable 130 r1.form("net-data") 132 r1.allowlist_node(r2) 133 r2.allowlist_node(r1) 134 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 152 r1.add_prefix(prefix1, on_mesh=True, preferred=True, stable=True) 157 r1.add_prefix(common_prefix, on_mesh=True, preferred=True, stable=False) 161 r1_rloc = int(r1.get(wpan.WPAN_THREAD_RLOC16), 0) 170 [r1, r2, c2], 178 [r1, r2, c2], [all …]
|
D | test-701-multi-radio-probe.py | 53 r1 = wpan.Node(wpan.NODE_15_4_TREL) variable 66 r1.allowlist_node(r2) 67 r2.allowlist_node(r1) 72 r1.form("discover-by-rx") 74 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 84 r1_ext_address = r1.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 85 r1_rloc = int(r1.get(wpan.WPAN_THREAD_RLOC16), 16) 86 r1_ml_address = r1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 95 router_table = wpan.parse_router_table_result(r1.get(wpan.WPAN_THREAD_ROUTER_TABLE)) 106 r1_radios = wpan.parse_list(r1.get(wpan.WPAN_OT_SUPPORTED_RADIO_LINKS)) [all …]
|
D | test-702-multi-radio-discovery-by-rx.py | 53 r1 = wpan.Node(wpan.NODE_15_4_TREL) variable 66 r1.allowlist_node(r2) 67 r2.allowlist_node(r1) 72 r1.form("discover-by-rx") 74 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 84 r1_ext_address = r1.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 85 r1_rloc = int(r1.get(wpan.WPAN_THREAD_RLOC16), 16) 86 r1_ml_address = r1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 95 router_table = wpan.parse_router_table_result(r1.get(wpan.WPAN_THREAD_ROUTER_TABLE)) 106 r1_radios = wpan.parse_list(r1.get(wpan.WPAN_OT_SUPPORTED_RADIO_LINKS)) [all …]
|
D | test-039-address-cache-table-snoop.py | 50 r1 = wpan.Node() variable 78 r1.form("sekiro") # shadows die twice! 80 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=False, preferred=True) 82 r1.allowlist_node(r2) 83 r2.allowlist_node(r1) 84 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 90 r1.allowlist_node(r3) 91 r3.allowlist_node(r1) 92 r3.join_node(r1, wpan.JOIN_TYPE_ROUTER) 106 r1.add_ip6_address_on_interface(r1_address) [all …]
|
D | test-010-on-mesh-prefix-config-gateway.py | 100 r1 = wpan.Node() variable 105 all_nodes = [r1, r2, sc1, sc2] 115 r1.allowlist_node(r2) 116 r2.allowlist_node(r1) 118 r1.allowlist_node(sc1) 121 r1.form('config-gtway') 122 r2.join_node(r1, node_type=wpan.JOIN_TYPE_ROUTER) 123 sc1.join_node(r1, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 140 r1.config_gateway(prefix1) 192 r1.reset() [all …]
|
D | test-030-slaac-address-ncp.py | 117 r1 = wpan.Node() variable 121 all_nodes = [r1, r2, c2] 131 r1.form('slaac-ncp') 133 r1.allowlist_node(r2) 134 r2.allowlist_node(r1) 136 r2.join_node(r1, node_type=wpan.JOIN_TYPE_ROUTER) 162 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True) 178 r1.reset() 186 r1.remove_prefix(PREFIX) 206 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True) [all …]
|
D | test-026-slaac-address-wpantund.py | 109 r1 = wpan.Node() variable 113 all_nodes = [r1, r2, c2] 123 r1.form('slaac-test') 125 r1.allowlist_node(r2) 126 r2.allowlist_node(r1) 128 r2.join_node(r1, node_type=wpan.JOIN_TYPE_ROUTER) 149 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True) 162 r1.reset() 167 r1.remove_prefix(PREFIX) 182 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True) [all …]
|
D | test-703-multi-radio-mesh-header-msg.py | 55 r1 = wpan.Node(wpan.NODE_TREL) variable 69 r1.allowlist_node(r2) 70 r2.allowlist_node(r1) 78 r1.form("mesh-header") 80 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 94 r1_radios = wpan.parse_list(r1.get(wpan.WPAN_OT_SUPPORTED_RADIO_LINKS)) 107 r1_rloc = int(r1.get(wpan.WPAN_THREAD_RLOC16), 16) 111 router_table = wpan.parse_router_table_result(r1.get(wpan.WPAN_THREAD_ROUTER_TABLE)) 126 r1_ml_address = r1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 129 sender = r1.prepare_tx(r1_ml_address, r3_ml_address, MSG_LEN, MSG_COUNT)
|
D | test-021-address-cache-table.py | 53 r1 = wpan.Node() variable 79 r1.form("addr-cache-tbl") 81 r1.add_prefix(PREFIX, stable=True, on_mesh=True, slaac=True, preferred=True) 83 r1.allowlist_node(c1) 84 c1.allowlist_node(r1) 85 c1.join_node(r1, wpan.JOIN_TYPE_END_DEVICE) 87 r1.allowlist_node(r2) 88 r2.allowlist_node(r1) 89 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 112 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) [all …]
|
D | test-043-meshcop-joiner-router.py | 48 r1 = wpan.Node() variable 67 r1.form('jr-meshcop') 69 r1.allowlist_node(r2) 70 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 86 r1.commissioner_start() 87 r1.commissioner_add_joiner(joiner_hw_addr, PSKd)
|
D | test-014-ip6-address-add.py | 65 r1 = wpan.Node() variable 70 all_nodes = [r1, fed1, r2, sed2] 85 r1.allowlist_node(r2) 86 r2.allowlist_node(r1) 88 r1.allowlist_node(fed1) 89 fed1.allowlist_node(r1) 94 r1.form("ip-addr") 95 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 97 fed1.join_node(r1, wpan.JOIN_TYPE_END_DEVICE)
|
D | test-020-router-table.py | 49 r1 = wpan.Node() variable 72 r1.form("route-table") 74 r1.allowlist_node(r2) 75 r2.allowlist_node(r1) 76 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 82 r3.allowlist_node(r1) 83 r1.allowlist_node(r3) 99 verify(r1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) 104 r1_id = int(r1.get(wpan.WPAN_THREAD_ROUTER_ID), 0) 109 r1_ext_addr = r1.get(wpan.WPAN_EXT_ADDRESS)[1:-1] [all …]
|
D | test-006-traffic-router-end-device.py | 94 r1 = node2.prepare_rx(s1) variable 100 verify(s1.was_successful and r1.was_successful)
|
D | test-007-traffic-router-sleepy.py | 99 r1 = node2.prepare_rx(s1) variable 105 verify(s1.was_successful and r1.was_successful)
|
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/ |
D | bn_mul.h | 897 mbedtls_mpi_uint r0, r1; 902 r1 = (mbedtls_mpi_uint)( r >> biL ); \ 903 r0 += c; r1 += (r0 < c); \ 904 r0 += *d; r1 += (r0 < *d); \ 905 c = r1; *(d++) = r0; 914 mbedtls_mpi_uint r0, r1, rx, ry; \ 922 ry = s1 * b0; r1 = s1 * b1; \ 923 r1 += ( rx >> biH ); \ 924 r1 += ( ry >> biH ); \ 926 r0 += rx; r1 += (r0 < rx); \ [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/library/ |
D | poly1305.c | 108 uint32_t r0, r1, r2, r3; in poly1305_process() local 114 r1 = ctx->r[1]; in poly1305_process() 118 rs1 = r1 + ( r1 >> 2U ); in poly1305_process() 153 d1 = mul64( acc0, r1 ) + in poly1305_process() 159 mul64( acc1, r1 ) + in poly1305_process() 165 mul64( acc2, r1 ) + in poly1305_process()
|