Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 55) sorted by relevance

123

/openthread-3.4.0/tests/scripts/thread-cert/
Dv1_2_router_5_1_1.py67 msg = leader_messages.next_mle_message(mle.CommandType.ADVERTISEMENT)
68 msg.assertSentWithHopLimit(255)
69 msg.assertSentToDestinationAddress('ff02::1')
70 msg.assertMleMessageContainsTlv(mle.SourceAddress)
71 msg.assertMleMessageContainsTlv(mle.LeaderData)
72 msg.assertMleMessageContainsTlv(mle.Route64)
75 msg = router_messages.next_mle_message(mle.CommandType.PARENT_REQUEST)
76 msg.assertSentWithHopLimit(255)
77 msg.assertSentToDestinationAddress('ff02::2')
78 msg.assertMleMessageContainsTlv(mle.Mode)
[all …]
Dv1_2_test_enhanced_keep_alive.py76 msg = leader_messages.next_mle_message(mle.CommandType.ADVERTISEMENT)
77 msg.assertSentWithHopLimit(255)
78 msg.assertSentToDestinationAddress('ff02::1')
79 msg.assertMleMessageContainsTlv(mle.SourceAddress)
80 msg.assertMleMessageContainsTlv(mle.LeaderData)
81 msg.assertMleMessageContainsTlv(mle.Route64)
84 msg = sed_messages.next_mle_message(mle.CommandType.PARENT_REQUEST)
85 msg.assertSentWithHopLimit(255)
86 msg.assertSentToDestinationAddress('ff02::2')
87 msg.assertMleMessageContainsTlv(mle.Mode)
[all …]
Dtest_ipv6_source_selection.py79 msg = router_msgs.get_icmp_message(ipv6.ICMP_ECHO_REQUEST)
80 msg.assertSentFromSourceAddress(router_rloc)
85 msg = router_msgs.get_icmp_message(ipv6.ICMP_ECHO_REQUEST)
86 msg.assertSentFromSourceAddress(router_mleid)
91 msg = router_msgs.get_icmp_message(ipv6.ICMP_ECHO_REQUEST)
92 msg.assertSentFromSourceAddress(router_mleid)
97 msg = router_msgs.get_icmp_message(ipv6.ICMP_ECHO_REQUEST)
98 msg.assertSentFromSourceAddress(router_linklocal)
103 msg = router_msgs.get_icmp_message(ipv6.ICMP_ECHO_REQUEST)
104 msg.assertSentFromSourceAddress(router_mleid)
[all …]
Dv1_2_test_single_probe.py78 msg = leader_messages.next_mle_message(mle.CommandType.DATA_RESPONSE)
79 msg.assertMleMessageContainsTlv(mle.LinkMetricsReport)
87 msg = leader_messages.next_mle_message(mle.CommandType.DATA_RESPONSE)
88 msg.assertMleMessageContainsTlv(mle.LinkMetricsReport)
96 msg = leader_messages.next_mle_message(mle.CommandType.DATA_RESPONSE)
97 msg.assertMleMessageContainsTlv(mle.LinkMetricsReport)
105 msg = leader_messages.next_mle_message(mle.CommandType.DATA_RESPONSE)
106 msg.assertMleMessageContainsTlv(mle.LinkMetricsReport)
117 msg = leader_messages.next_mle_message(mle.CommandType.DATA_RESPONSE)
118 msg.assertMleMessageContainsTlv(mle.LinkMetricsReport)
Dmessage.py102 msg = self.clone()
103 msg._dtls = dtls
104 ret.append(msg)
108 msg = Message()
109 msg._type = self.type
110 msg._channel = self.channel
111 msg._mac_header = self.mac_header
112 msg._ipv6_packet = self.ipv6_packet
113 msg._coap = self.coap
114 msg._mle = self.mle
[all …]
Dv1_2_test_parent_selection.py147 msg = messages.next_mle_message(mle.CommandType.CHILD_ID_REQUEST)
148 msg.assertSentToNode(self.nodes[ROUTER_1_1])
182 msg = messages.next_mle_message(mle.CommandType.CHILD_ID_REQUEST)
183 msg.assertSentToNode(self.nodes[LEADER_1_2])
215 msg = messages.next_mle_message(mle.CommandType.CHILD_ID_REQUEST)
216 msg.assertSentToNode(self.nodes[ROUTER_1_2])
251 msg = messages.next_mle_message(mle.CommandType.CHILD_ID_REQUEST)
252 msg.assertSentToNode(self.nodes[LEADER_1_2])
286 msg = messages.next_mle_message(mle.CommandType.CHILD_ID_REQUEST)
287 msg.assertSentToNode(self.nodes[ROUTER_1_2])
Dv1_2_test_csl_transmission.py74 msg = ssed_messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST)
79 msg = ssed_messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST)
80 msg.assertMleMessageContainsTlv(mle.CslChannel)
90 msg = ssed_messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST)
Dv1_2_test_multicast_registration.py164 msg = messages.next_mle_message(mle.CommandType.CHILD_UPDATE_REQUEST,
167 if msg:
168 is_in = command.check_address_registration_tlv(msg, multicast_address)
Dv1_2_test_multicast_listener_registration.py674 msg = messages.next_coap_message('2.04')
675 …logging.info('Check ACK for %s: %s, %s, %s, %s', message_id, msg, msg.coap.message_id, msg.coap.ur…
676 msg.coap.payload)
677 if msg.coap.message_id == message_id:
678 return msg
685 msg = messages.next_coap_message('0.02', '/n/mr', assert_enabled=False)
686 if not msg:
689 logging.info("MLR.req: %s %s" % (msg.coap.message_id, msg.coap.payload))
690 addrs = msg.get_coap_message_tlv(network_layer.IPv6Addresses)
693 message_ids.append(msg.coap.message_id)
/openthread-3.4.0/third_party/mbedtls/repo/tests/scripts/
Dall.sh348 msg() function
371 msg "build: ARM Compiler 6 ($FLAGS)"
375 msg "size: ARM Compiler 6 ($FLAGS)"
681 msg "info: $0 configuration"
760 msg "info: output_env.sh"
787 msg "Check: recursion.pl" # < 1s
792 msg "Check: freshness of generated source files" # < 1s
797 msg "Check: doxygen markup outside doxygen blocks" # < 1s
802 msg "Check: file sanity checks (permissions, encodings)" # < 1s
807 msg "Check: changelog entries" # < 1s
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.function42 unsigned char msg[10];
53 memset( msg, 0, sizeof( msg ) );
62 msg, out, tag, tag_len ) == res );
65 msg, out, tag, tag_len );
84 unsigned char msg[10];
94 memset( msg, 0, sizeof( msg ) );
104 add, add_len, msg, out, tag, tag_len ) == res );
107 add_len, msg, out, tag, tag_len );
121 data_t * msg, data_t * iv,
131 memcpy( msg_n_tag, msg->x, msg->len );
[all …]
Dtest_suite_nist_kw.function245 void mbedtls_nist_kw_wrap( int cipher_id, int mode, data_t *key, data_t *msg,
260 TEST_ASSERT( mbedtls_nist_kw_wrap( &ctx, mode, msg->x, msg->len,
267 padlen = ( msg->len % 8 != 0 ) ? 8 - (msg->len % 8 ) : 0;
269 for( i = msg->len + 8 + padlen; i < sizeof( result ); i++ )
280 void mbedtls_nist_kw_unwrap( int cipher_id, int mode, data_t *key, data_t *msg,
295 TEST_ASSERT( mbedtls_nist_kw_unwrap( &ctx, mode, msg->x, msg->len,
308 for( i = msg->len - 8; i < sizeof( result ); i++ )
Dtest_suite_ecjpake.function209 void read_bad_md( data_t *msg )
221 TEST_ASSERT( mbedtls_ecjpake_read_round_one( &corrupt_ctx, msg->x,
222 msg->len ) == MBEDTLS_ERR_MD_BAD_INPUT_DATA );
230 void read_round_one( int role, data_t * msg, int ref_ret )
241 TEST_ASSERT( mbedtls_ecjpake_read_round_one( &ctx, msg->x, msg->len ) == ref_ret );
249 void read_round_two_cli( data_t * msg, int ref_ret )
266 TEST_ASSERT( mbedtls_ecjpake_read_round_two( &ctx, msg->x, msg->len ) == ref_ret );
274 void read_round_two_srv( data_t * msg, int ref_ret )
291 TEST_ASSERT( mbedtls_ecjpake_read_round_two( &ctx, msg->x, msg->len ) == ref_ret );
/openthread-3.4.0/tests/unit/
Dtest_nat64.cpp97 Message *msg = sInstance->Get<Ip6::Ip6>().NewMessage(0); in TestCase6To4() local
101 VerifyOrQuit(msg != nullptr); in TestCase6To4()
102 SuccessOrQuit(msg->AppendBytes(aIp6Message, N)); in TestCase6To4()
106 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateFromIp6(*msg) == aResult); in TestCase6To4()
111 VerifyOrQuit(CheckMessage(*msg, aOutMessage, aOutMessageLen)); in TestCase6To4()
124 Message *msg = sInstance->Get<Ip6::Ip6>().NewMessage(0); in TestCase4To6() local
128 VerifyOrQuit(msg != nullptr); in TestCase4To6()
129 SuccessOrQuit(msg->AppendBytes(aIp4Message, N)); in TestCase4To6()
133 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateToIp6(*msg) == aResult); in TestCase4To6()
138 VerifyOrQuit(CheckMessage(*msg, aOutMessage, aOutMessageLen)); in TestCase4To6()
Dtest_message_queue.cpp82 for (ot::Message &msg : aMessageQueue) in VerifyMessageQueueContent()
84 VerifyOrQuit(message == &msg, "`for` loop iteration does not match expected"); in VerifyMessageQueueContent()
114 for (ot::Message *&msg : messages) in TestMessageQueue()
116 msg = sMessagePool->Allocate(ot::Message::kTypeIp6); in TestMessageQueue()
117 VerifyOrQuit(msg != nullptr, "Message::Allocate() failed"); in TestMessageQueue()
290 for (otMessage *&msg : messages) in TestMessageQueueOtApis()
292 msg = otIp6NewMessage(sInstance, nullptr); in TestMessageQueueOtApis()
293 VerifyOrQuit(msg != nullptr, "otIp6NewMessage() failed."); in TestMessageQueueOtApis()
/openthread-3.4.0/src/posix/platform/
Dudp.cpp88 struct msghdr msg; in transmitPacket() local
109 msg.msg_name = &peerAddr; in transmitPacket()
110 msg.msg_namelen = sizeof(peerAddr); in transmitPacket()
111 msg.msg_control = control; in transmitPacket()
112 msg.msg_controllen = static_cast<decltype(msg.msg_controllen)>(sizeof(control)); in transmitPacket()
113 msg.msg_iov = &iov; in transmitPacket()
114 msg.msg_iovlen = 1; in transmitPacket()
115 msg.msg_flags = 0; in transmitPacket()
120 cmsg = CMSG_FIRSTHDR(&msg); in transmitPacket()
135 cmsg = CMSG_NXTHDR(&msg, cmsg); in transmitPacket()
[all …]
Dnetif.cpp593 struct rtmsg msg; in AddRoute() member
611 req.msg.rtm_family = (N == sizeof(in6_addr) ? AF_INET6 : AF_INET); in AddRoute()
612 req.msg.rtm_src_len = 0; in AddRoute()
613 req.msg.rtm_dst_len = aPrefixLen; in AddRoute()
614 req.msg.rtm_tos = 0; in AddRoute()
615 req.msg.rtm_scope = RT_SCOPE_UNIVERSE; in AddRoute()
616 req.msg.rtm_type = RTN_UNICAST; in AddRoute()
617 req.msg.rtm_table = RT_TABLE_MAIN; in AddRoute()
618 req.msg.rtm_protocol = RTPROT_BOOT; in AddRoute()
619 req.msg.rtm_flags = 0; in AddRoute()
[all …]
Dvirtual_time.cpp74 char msg[kMsgSize]; in virtualTimeInit() local
76 snprintf(msg, sizeof(msg), "Invalid PORT_OFFSET: %s", offset); in virtualTimeInit()
77 DieNowWithMessage(msg, OT_EXIT_INVALID_ARGUMENTS); in virtualTimeInit()
Dinfra_if.cpp514 struct msghdr msg; in ReceiveIcmp6Message() local
529 msg.msg_iov = &bufp; in ReceiveIcmp6Message()
530 msg.msg_iovlen = 1; in ReceiveIcmp6Message()
531 msg.msg_name = &srcAddr; in ReceiveIcmp6Message()
532 msg.msg_namelen = sizeof(srcAddr); in ReceiveIcmp6Message()
533 msg.msg_control = cmsgbuf; in ReceiveIcmp6Message()
534 msg.msg_controllen = sizeof(cmsgbuf); in ReceiveIcmp6Message()
536 rval = recvmsg(mInfraIfIcmp6Socket, &msg, 0); in ReceiveIcmp6Message()
545 for (cmh = CMSG_FIRSTHDR(&msg); cmh; cmh = CMSG_NXTHDR(&msg, cmh)) in ReceiveIcmp6Message()
/openthread-3.4.0/tools/harness-automation/autothreadharness/
Dpdu_controller.py256 msg = 'Found PDU errorIndication: {}'.format(errorIndication)
257 logger.exception(msg)
258 raise RuntimeError(msg)
260 msg = 'Found PDU errorStatus: {}'.format(errorStatus)
261 logger.exception(msg)
262 raise RuntimeError(msg)
279 msg = 'Found PDU errorIndication: {}'.format(errorIndication)
280 logger.exception(msg)
281 raise RuntimeError(msg)
283 msg = 'Found PDU errorStatus: {}'.format(errorStatus)
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/tests/src/
Dthreading_helpers.c102 const char *msg ) in mbedtls_test_mutex_usage_error() argument
106 mbedtls_test_info.mutex_usage_error = msg; in mbedtls_test_mutex_usage_error()
107 mbedtls_fprintf( stdout, "[mutex: %s] ", msg ); in mbedtls_test_mutex_usage_error()
/openthread-3.4.0/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlin/internal/
Dtarget.h69 #define KRML_EABORT(t, msg) \ argument
70 (KRML_HOST_PRINTF("KreMLin abort at %s:%d\n%s\n", __FILE__, __LINE__, msg), \
/openthread-3.4.0/tests/toranj/ncp/
Dwpan.py707 msg = ''.join(random.choice(all_chars) for _ in range(data))
709 msg = data
711 return AsyncSender(self, src_addr, src_port, dst_addr, dst_port, msg, count, mcast_hops)
733 receiver._add_sender(sender.src_addr, sender.src_port, sender.msg, sender.count)
780 def __init__(self, node, src_addr, src_port, dst_addr, dst_port, msg, count, mcast_hops=None): argument
786 self._msg = msg
835 def msg(self): member in AsyncSender
889 def __init__(self, sender_addr, sender_port, msg, count): argument
892 self._msg = msg
896 def _check_received(self, msg, sender_addr, sender_port): argument
[all …]
Dtest-023-multicast-traffic.py90 … all([msg[1][0] != sender.src_addr and msg[1][1] != sender.src_port for msg in lsnr.all_rx_msg]))
/openthread-3.4.0/tools/harness-simulation/harness/Thread_Harness/Sniffer/
DSimSniffer.py69 def UIMsgBoxWrapper(msg='Confirm ??', argument
76 func = replaceFuncs.get((msg, title))
78 return UIMsgBox(msg, title, inputRequired, default, choices, timeout, isPrompt)
331 msg = fmt % args
332 print('%s - %s - %s' % ('SimSniffer', time.strftime('%b %d %H:%M:%S'), msg))

123