/openthread-latest/.github/workflows/ |
D | size.yml | 29 name: Size 33 branches-ignore: 34 - 'dependabot/**' 37 - 'main' 40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent… 41 cancel-in-progress: true 48 size-report: 49 runs-on: ubuntu-24.04 51 - name: Harden Runner 52 uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 [all …]
|
/openthread-latest/script/ |
D | check-size | 30 set -euo pipefail 32 OT_TMP_DIR=/tmp/ot-size-report 35 OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)} 38 OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)" 47 OT_REPORTER="${OT_SIZE_REPORTER-}" 52 if arm-none-eabi-gcc --version | grep -q 'Arm Embedded Processors 7'; then 57 …wget --tries 4 --no-check-certificate --quiet https://developer.arm.com/-/media/Files/downloads/gn… 58 && tar xjf gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2) 59 export PATH=/tmp/gcc-arm-none-eabi-7-2018-q2-update/bin:$PATH 61 arm-none-eabi-gcc --version [all …]
|
/openthread-latest/src/core/net/ |
D | dns_client.hpp | 2 * Copyright (c) 2017-2021, The OpenThread Authors. 32 #include "openthread-core-config.h" 93 namespace ot { namespace 106 friend class ot::Srp::Client; 346 * @param[in] aNameBufferSize The size of @p aNameBuffer. 404 * @param[in] aNameBufferSize The size of @p aNameBuffer. 427 * @param[in] aLabelBufferSize The size of @p aLabelBuffer. 445 * - If no matching SRV record is found, `kErrorNotFound` is returned. 446 * - If a matching SRV record is found, @p aServiceInfo is updated returning `kErrorNone`. 447 * - If no matching TXT record is found, `mTxtDataSize` in @p aServiceInfo is set to zero. [all …]
|
D | mdns.hpp | 32 #include "openthread-core-config.h" 73 namespace ot { namespace 207 …* - The `mHostName` field specifies the host name to register (e.g., "myhost"). MUST NOT contain t… 208 …* - The `mAddresses` is array of IPv6 addresses to register with the host. `mAddressesLength` prov… 210 …* - The `mAddresses` array can be empty with zero `mAddressesLength`. In this case, mDNS will trea… 212 …* - The `mTtl` specifies the TTL if non-zero. If zero, the mDNS core will choose a default TTL to … 221 * - `kErrorNone` indicates registration was successful 222 …* - `kErrorDuplicated` indicates a name conflict, i.e., the name is already claimed by another mDN… 230 …* @param[in] aCallback The callback function pointer to report the outcome (can be `nullptr` i… 232 …* @retval kErrorNone Successfully started registration. @p aCallback will report the outc… [all …]
|
D | srp_server.hpp | 37 #include "openthread-core-config.h" 89 namespace ot { namespace 179 * Implements a server-side SRP service. 207 * @returns A pointer service instance name (as a null-terminated C string). 214 * @returns A pointer service instance label (as a null-terminated C string). 221 * @returns A pointer service name (as a null-terminated C string). 226 * Gets number of sub-types of this service. 228 * @returns The number of sub-types. 233 * Gets the sub-type service name (full name) at a given index. 235 …* The full service name for a sub-type service follows "<sub-label>._sub.<service-labels>.<domain>… [all …]
|
D | mdns.cpp | 40 namespace ot { namespace 46 //-------------------------------------------------------------------------------------------------… 57 //-------------------------------------------------------------------------------------------------… 64 const char Core::kServicesDnssdLabels[] = "_services._dns-sd._udp"; 73 , mNextProbeTxTime(TimerMilli::GetNow() - 1) in Core() 78 , mNextQueryTxTime(TimerMilli::GetNow() - 1) in Core() 96 LogInfo("Enabling on infra-if-index %lu", ToUlong(mInfraIfIndex)); in SetEnabled() 150 entry->Register(aItemInfo, Callback(aRequestId, aCallback)); in Register() 167 entry->Unregister(aItemInfo); in Unregister() 264 if (rxMessagePtr->IsQuery()) in HandleMessage() [all …]
|
/openthread-latest/src/core/config/ |
D | mdns.h | 31 * This file includes compile-time configurations for the Multicast DNS (mDNS). 38 * @addtogroup config-mdns 60 …* The OpenThread mDNS module is mainly intended for use by other OT core modules, so the public AP… 80 …* Define to 1 for mDNS module to be automatically enabled/disabled on the same infra-if used for b… 81 * based on infra-if state. 92 …stion. The `otMdnsSetQuestionUnicastAllowed()` can be used to change the default value at run-time. 103 * This is intended for generating code size report only and should not be used otherwise.
|
/openthread-latest/src/ncp/ |
D | ncp_base.hpp | 36 #include "openthread-core-config.h" 73 // In case of host<->ncp<->rcp configuration, notifications shall be 81 namespace ot { namespace 89 kSpinelCmdHeaderSize = 2, ///< Size of spinel command header (in bytes). 90 kSpinelPropIdSize = 3, ///< Size of spinel property identifier (in bytes). 137 * Returns an OT instance for the given IID 171 * If aDataLen is non-zero, this param MUST NOT be nullptr. 238 …* @note Per RFC 4861, the implementation should send the message with IPv6 link-local source addr… 251 * Registers or updates a host on the infrastructure network's DNS-SD module (on host). 255 …* @param[in] aCallback The callback function pointer to report the outcome (may be NULL if no … [all …]
|
D | ncp_base_mtd.cpp | 2 * Copyright (c) 2016-2017, The OpenThread Authors. 33 #include "openthread-core-config.h" 79 namespace ot { namespace 222 if (aMetricsValues->mMetrics.mPduCount) in EncodeLinkMetricsValues() 226 SuccessOrExit(error = mEncoder.WriteUint32(aMetricsValues->mPduCountValue)); in EncodeLinkMetricsValues() 230 if (aMetricsValues->mMetrics.mLqi) in EncodeLinkMetricsValues() 234 SuccessOrExit(error = mEncoder.WriteUint8(aMetricsValues->mLqiValue)); in EncodeLinkMetricsValues() 238 if (aMetricsValues->mMetrics.mLinkMargin) in EncodeLinkMetricsValues() 242 SuccessOrExit(error = mEncoder.WriteUint8(aMetricsValues->mLinkMarginValue)); in EncodeLinkMetricsValues() 246 if (aMetricsValues->mMetrics.mRssi) in EncodeLinkMetricsValues() [all …]
|
/openthread-latest/include/openthread/ |
D | dns_client.h | 2 * Copyright (c) 2017-2021, The OpenThread Authors. 32 * This file defines the top-level DNS functions for the OpenThread library. 47 * @addtogroup api-dns 128 …* When OpenThread stack starts, the default DNS query config is determined from a set of OT config… 144 …* The @p aConfig can be NULL. In this case the default config will be set to the defaults from OT … 148 …* In a non-NULL @p aConfig, caller can choose to leave some of the fields in `otDnsQueryConfig` in… 149 …* (value zero). The unspecified fields are replaced by the corresponding OT config option definiti… 154 …* set or specify it. This behavior requires SRP client and its auto-start feature to be enabled. S… 180 * @param[in] aResponse A pointer to the response (it is always non-NULL). 181 * @param[in] aContext A pointer to application-specific context. [all …]
|
/openthread-latest/src/core/thread/ |
D | mesh_forwarder.hpp | 37 #include "openthread-core-config.h" 59 namespace ot { namespace 70 * @addtogroup core-mesh-forwarding 79 * Represents link-specific information for messages received from the Thread radio. 195 * @retval kErrorInvalidState Device is not in Rx-Off-When-Idle mode or it has no parent. 202 * Is called by the address resolver when an EID-to-RLOC mapping has been resolved. 210 * Indicates whether or not rx-on-when-idle mode is enabled. 212 * @retval TRUE The rx-on-when-idle mode is enabled. 213 * @retval FALSE The rx-on-when-idle-mode is disabled. 218 * Sets the rx-on-when-idle mode [all …]
|
D | mle_tlvs.hpp | 37 #include "openthread-core-config.h" 48 namespace ot { namespace 53 * @addtogroup core-mle-tlvs 65 class Tlv : public ot::Tlv 78 kLinkFrameCounter = 5, ///< Link-Layer Frame Counter TLV 107 kLinkMetricsReport = 89, ///< Link Metrics Report TLV 126 Type GetType(void) const { return static_cast<Type>(ot::Tlv::GetType()); } in GetType() 133 void SetType(Type aType) { ot::Tlv::SetType(static_cast<uint8_t>(aType)); } in SetType() 242 * Indicates whether or not the TLV appears to be well-formed. 244 * @retval TRUE If the TLV appears to be well-formed. [all …]
|
/openthread-latest/tests/scripts/thread-cert/ |
D | node.py | 82 … self._socat_proc = subprocess.Popen(['socat', '-d', '-d', 'pty,raw,echo=0', 'pty,raw,echo=0'], 103 # We expect ot-rcp not to quit in 1 second. 106 raise Exception(f"ot-rcp {nodeid} exited unexpectedly!") 108 def _get_ot_rcp_path(self) -> str: 110 path = '%s/examples/apps/ncp/ot-rcp' % srcdir 111 logging.info("ot-rcp path: %s", path) 116 subprocess.check_call(f"docker rm -f {self._docker_name} || true", shell=True) 118 dns = ['--dns=127.0.0.1'] if INFRA_DNS64 == 1 else ['--dns=8.8.8.8'] 119 nat64_prefix = ['--nat64-prefix', '2001:db8:1:ffff::/96'] if INFRA_DNS64 == 1 else [] 123 '--rm', [all …]
|
/openthread-latest/src/cli/ |
D | README.md | 24 - [attachtime](#attachtime) 25 - [ba](#ba) 26 - [bbr](#bbr) 27 - [br](README_BR.md) 28 - [bufferinfo](#bufferinfo) 29 - [ccathreshold](#ccathreshold) 30 - [channel](#channel) 31 - [child](#child-list) 32 - [childip](#childip) 33 - [childmax](#childmax) [all …]
|
/openthread-latest/tools/otci/otci/ |
D | otci.py | 86 duration -= 1 99 already_is_ok: bool = True) -> List[str]: 113 already_is_ok: bool = True) -> List[str]: 133 if output[-1] == 'Done' or (already_is_ok and output[-1] == 'Error 24: Already'): 134 output = output[:-1] 139 …def execute_platform_command(self, cmd: str, timeout: float = 10, silent: bool = False) -> List[st… 186 …"""Returns the firmware version. (e.g. "OPENTHREAD/20191113-01411-gb2d66e424-dirty; SIMULATION; No… 214 def get_ifconfig_state(self) -> bool: 238 …ived>\d+) packets received.(?: Packet loss = (?P<loss>\d+\.\d+)%.)?(?: Round-trip min/avg/max = (?… 243 size: int = 8, [all …]
|