| /external/ot-br-posix/tests/scripts/ |
| D | meshcop | 35 set -euxo pipefail 38 # - commissioning 39 # - mdns_service 40 TEST_CASE="${TEST_CASE:-commissioning}" 50 #--------------------------------------- 52 #--------------------------------------- 53 OT_RCP="ot-rcp" 56 OT_CLI="${OT_CLI:-ot-cli-ftd}" 59 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)" 62 ABS_TOP_SRCDIR="$(cd "${top_srcdir:-"${SCRIPT_DIR}"/../../}" && pwd)" [all …]
|
| /external/openthread/tools/harness-simulation/posix/etc/ |
| D | commissionerd | 31 # Required-Start: 32 # Required-Stop: 33 # Should-Start: 34 # Should-Stop: 35 # Default-Start: 2 3 4 5 36 # Default-Stop: 0 1 6 37 # Short-Description: OT-commissioner daemon 38 # Description: OT-commissioner daemon 41 set -e 44 DESC="OT-commissioner daemon" [all …]
|
| D | Dockerfile | 44 ENV INFRA_IF_NAME=${INFRA_IF_NAME:-eth0} 45 ENV BORDER_ROUTING=${BORDER_ROUTING:-1} 46 ENV BACKBONE_ROUTER=${BACKBONE_ROUTER:-1} 47 ENV OTBR_MDNS=${MDNS:-mDNSResponder} 49 ENV EXTERNAL_COMMISSIONER=${EXTERNAL_COMMISSIONER:-1} 52 ENV REFERENCE_DEVICE=${REFERENCE_DEVICE:-0} 53 ENV NAT64=${NAT64:-1} 54 ENV NAT64_SERVICE=${NAT64_SERVICE:-tayga} 55 ENV DNS64=${DNS64:-0} 56 ENV WEB_GUI=${WEB_GUI:-1} [all …]
|
| /external/openthread/src/cli/ |
| D | cli_commissioner.hpp | 31 * This file contains definitions for a simple CLI to control the Commissioner role. 37 #include "openthread-core-config.h" 39 #include <openthread/commissioner.h> 45 namespace ot { namespace 49 * Implements the Commissioner CLI interpreter. 51 class Commissioner : private Utils class 60 Commissioner(otInstance *aInstance, OutputImplementer &aOutputImplementer) in Commissioner() function in ot::Cli::Commissioner 66 * Processes a CLI sub-command. 81 using Command = CommandEntry<Commissioner>; 109 } // namespace ot
|
| D | cli_commissioner.cpp | 31 * This file implements a simple CLI for the Commissioner role. 40 namespace ot { namespace 44 * @cli commissioner announce 46 * commissioner announce 0x00050000 2 32 fdde:ad00:beef:0:0:ff:fe00:c00 49 * @cparam commissioner announce @ca{mask} @ca{count} @ca{period} @ca{destination} 56 * @note Use this command only after successfully starting the %Commissioner role 57 * with the `commissioner start` command. 58 * @csa{commissioner start} 61 template <> otError Commissioner::Process<Cmd("announce")>(Arg aArgs[]) in Process() 81 * @cli commissioner energy [all …]
|
| /external/openthread/.github/workflows/ |
| D | simulation-1.1.yml | 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 packet-verification: 49 runs-on: ubuntu-24.04 57 - name: Harden Runner 58 uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 60 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs [all …]
|
| /external/openthread/src/core/meshcop/ |
| D | meshcop_tlvs.hpp | 37 #include "openthread-core-config.h" 39 #include <openthread/commissioner.h> 59 namespace ot { namespace 66 class Tlv : public ot::Tlv 84 kCommissionerId = OT_MESHCOP_TLV_COMMISSIONER_ID, ///< Commissioner ID TLV 85 …kCommissionerSessionId = OT_MESHCOP_TLV_COMM_SESSION_ID, ///< Commissioner Session ID T… 89 … kCommissionerUdpPort = OT_MESHCOP_TLV_COMMISSIONER_UDP_PORT, ///< Commissioner UDP Port TLV 123 … static constexpr uint8_t kMaxCommissionerIdLength = 64; ///< Max length of Commissioner ID TLV. 135 Type GetType(void) const { return static_cast<Type>(ot::Tlv::GetType()); } in GetType() 142 void SetType(Type aType) { ot::Tlv::SetType(static_cast<uint8_t>(aType)); } in SetType() [all …]
|
| D | commissioner.hpp | 31 * This file includes definitions for the Commissioner role. 37 #include "openthread-core-config.h" 41 #include <openthread/commissioner.h> 62 namespace ot { namespace 67 #error "Commissioner feature requires `OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE`" 70 class Commissioner : public InstanceLocator, private NonCopyable class 77 * Type represents the Commissioner State. 82 kStatePetition = OT_COMMISSIONER_STATE_PETITION, ///< Petitioning to become a Commissioner. 83 kStateActive = OT_COMMISSIONER_STATE_ACTIVE, ///< Active Commissioner. 102 * Initializes the Commissioner object. [all …]
|
| D | announce_begin_client.cpp | 40 namespace ot { namespace 58 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendRequest() 61 SuccessOrExit(error = message->InitAsPost(aAddress, kUriAnnounceBegin)); in SendRequest() 62 SuccessOrExit(error = message->SetPayloadMarker()); in SendRequest() 65 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendRequest() 83 } // namespace ot
|
| D | border_agent.hpp | 37 #include "openthread-core-config.h" 61 namespace ot { namespace 76 friend class ot::BorderRouter::RoutingManager; 78 friend class ot::Notifier; 183 * @param[in] aContext A pointer to application-specific context. 223 … kStateConnected = OT_BORDER_AGENT_STATE_CONNECTED, ///< Session connected, not full commissioner. 224 …epted = OT_BORDER_AGENT_STATE_ACCEPTED, ///< Session connected and accepted as full commissioner. 247 …* The ephemeral key can be used only once by an external commissioner candidate to establish a sec… 248 …* After the commissioner candidate disconnects, the use of the ephemeral key is stopped. If the ti… 296 * Converts a given `State` to human-readable string. [all …]
|
| D | panid_query_client.cpp | 40 namespace ot { namespace 59 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendQuery() 62 SuccessOrExit(error = message->InitAsPost(aAddress, kUriPanIdQuery)); in SendQuery() 63 SuccessOrExit(error = message->SetPayloadMarker()); in SendQuery() 66 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 108 } // namespace ot
|
| D | energy_scan_client.cpp | 40 namespace ot { namespace 61 VerifyOrExit(Get<MeshCoP::Commissioner>().IsActive(), error = kErrorInvalidState); in SendQuery() 64 SuccessOrExit(error = message->InitAsPost(aAddress, kUriEnergyScan)); in SendQuery() 65 SuccessOrExit(error = message->SetPayloadMarker()); in SendQuery() 68 …error = Tlv::Append<MeshCoP::CommissionerSessionIdTlv>(*message, Get<MeshCoP::Commissioner>().GetS… in SendQuery() 112 } // namespace ot
|
| D | meshcop_leader.hpp | 37 #include "openthread-core-config.h" 49 namespace ot { namespace 72 * Sends a MGMT_DATASET_CHANGED message to commissioner. 96 * Sets empty Commissioner Data TLV in the Thread Network Data. 146 } // namespace ot
|
| D | tcat_agent.hpp | 37 #include "openthread-core-config.h" 56 namespace ot { namespace 89 …mmissioning = OT_TCAT_COMMAND_CLASS_DECOMMISSIONING, ///< TCAT commands related to de-commissioning 99 kCommissionerFlag = 1 << 0, ///< TCAT commissioner ('1') or device ('0') 109 kPskdFlag = 1 << 1, ///< Access requires proof-of-possession of the device's PSKd 113 kPskcFlag = 1 << 5, ///< Access requires proof-of-possession of the device's PSKc 118 * Represents a data structure for storing TCAT Commissioner authorization information in the 163 …kTlvPresentPskdHash = 16, ///< TCAT commissioner rights elevation request TLV using PSKd… 164 …kTlvPresentPskcHash = 17, ///< TCAT commissioner rights elevation request TLV using PSKc… 165 …kTlvPresentInstallCodeHash = 18, ///< TCAT commissioner rights elevation request TLV using inst… [all …]
|
| D | commissioner.cpp | 31 * This file implements a Commissioner role. 34 #include "commissioner.hpp" 40 namespace ot { namespace 43 RegisterLogModule("Commissioner"); 45 Commissioner::Commissioner(Instance &aInstance) in Commissioner() function in ot::MeshCoP::Commissioner 65 IgnoreError(SetId("OpenThread Commissioner")); in Commissioner() 70 void Commissioner::SetState(State aState) in SetState() 78 LogInfo("State: %s -> %s", StateToString(oldState), StateToString(aState)); in SetState() 86 void Commissioner::SignalJoinerEvent(JoinerEvent aEvent, const Joiner *aJoiner) const in SignalJoinerEvent() 94 aJoiner->CopyToJoinerInfo(joinerInfo); in SignalJoinerEvent() [all …]
|
| D | dataset_manager_ftd.cpp | 40 namespace ot { namespace 45 //-------------------------------------------------------------------------------------------------… 127 // Determine whether the request is from commissioner. in ProcessSetOrReplaceRequest() 140 // Verify an MGMT_ACTIVE_SET.req from a Commissioner does not in ProcessSetOrReplaceRequest() 149 // MGMT_ACTIVE_SET.req/MGMT_PENDING_SET.req from Commissioner in ProcessSetOrReplaceRequest() 160 // MGMT_ACTIVE_REPLACE can only be used by commissioner. in ProcessSetOrReplaceRequest() 218 // Notify commissioner if update is from a Thread device. in HandleSetOrReplace() 256 //-------------------------------------------------------------------------------------------------… 391 //-------------------------------------------------------------------------------------------------… 424 } // namespace ot
|
| /external/openthread/src/core/api/ |
| D | commissioner_api.cpp | 31 * This file implements the OpenThread Commissioner API. 34 #include "openthread-core-config.h" 40 using namespace ot; 47 …return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().Start(aStateCallback, aJoinerCallback, a… in otCommissionerStart() 52 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().GetId(); in otCommissionerGetId() 57 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().SetId(aId); in otCommissionerSetId() 60 …erStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().Stop(); } in otCommissionerStop() 65 MeshCoP::Commissioner &commissioner = AsCoreType(aInstance).Get<MeshCoP::Commissioner>(); in otCommissionerAddJoiner() local 69 error = commissioner.AddJoinerAny(aPskd, aTimeout); in otCommissionerAddJoiner() 73 error = commissioner.AddJoiner(AsCoreType(aEui64), aPskd, aTimeout); in otCommissionerAddJoiner() [all …]
|
| /external/ot-br-posix/src/rest/ |
| D | openapi.yaml | 4 description: |- 5 …This describes the OpenThread Border Router REST API. The API is provided by the otbr-agent, if th… 9 - [OpenThread Border Router repository](github.com/openthread/ot-br-posix/) 11 name: BSD 3-Clause 12 url: https://github.com/openthread/ot-br-posix/blob/main/LICENSE 15 - url: http://localhost:8081 17 - name: node 19 - name: diagnostics 25 - diagnostics 37 - node [all …]
|
| /external/openthread/src/core/radio/ |
| D | ble_secure.cpp | 37 using namespace ot; 44 namespace ot { namespace 176 Error BleSecure::SendMessage(ot::Message &aMessage) in SendMessage() 186 SuccessOrExit(error = mSendMessage->AppendBytesFromMessage(aMessage, 0, aMessage.GetLength())); in SendMessage() 204 SuccessOrExit(error = mSendMessage->AppendBytes(aBuf, aLength)); in Send() 215 ot::ExtendedTlv tlv; in SendApplicationTlv() 217 tlv.SetType(ot::MeshCoP::TcatAgent::kTlvSendApplicationData); in SendApplicationTlv() 223 ot::Tlv tlv; in SendApplicationTlv() 225 tlv.SetType(ot::MeshCoP::TcatAgent::kTlvSendApplicationData); in SendApplicationTlv() 240 VerifyOrExit(mSendMessage->GetLength() != 0, error = kErrorNone); in Flush() [all …]
|
| /external/ot-br-posix/tests/dbus/ |
| D | test-client | 32 set -euxo pipefail 34 OTBR_DBUS_SERVER_CONF=otbr-test-agent.conf 41 sudo systemctl stop test-otbr-agent || true 42 if [[ -v LEADER_PID ]]; then 45 if [[ -v CHILD_PID ]]; then 48 sudo killall dbus-monitor || true 49 sudo rm "/etc/dbus-1/system.d/${OTBR_DBUS_SERVER_CONF}" || true 51 sed -n "/$TEST_HELLO/,\$p" /var/log/syslog | grep 'ot-cli\|otbr' 58 sudo "${CMAKE_BINARY_DIR}"/third_party/openthread/repo/src/posix/ot-ctl "$@" 64 timeout 2 bash -c "while ! ot_ctl state; do sleep 1; done" [all …]
|
| /external/ot-br-posix/.github/workflows/ |
| D | meshcop.yml | 33 branches-ignore: 34 - 'dependabot/**' 37 - 'main' 40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent… 41 cancel-in-progress: true 46 runs-on: ubuntu-latest 48 fail-fast: false 52 - uses: actions/checkout@v4 55 - name: Bootstrap 60 - name: Build [all …]
|
| /external/openthread/src/core/thread/ |
| D | thread_tlvs.hpp | 37 #include "openthread-core-config.h" 47 namespace ot { namespace 53 class ThreadTlv : public ot::Tlv 64 kMeshLocalEid = 3, ///< ML-EID TLV 74 kCommissionerSessionId = 15, ///< Commissioner Session ID TLV 82 Type GetType(void) const { return static_cast<Type>(ot::Tlv::GetType()); } in GetType() 89 void SetType(Type aType) { ot::Tlv::SetType(static_cast<uint8_t>(aType)); } in SetType() 109 * Defines ML-EID TLV constants and types. 129 * Defines Commissioner Session ID TLV constants and types. 176 … kDuaNoResources = 4, ///< Registration rejected (Non-fatal): Backbone Router Resource shortage. [all …]
|
| D | tmf.cpp | 38 namespace ot { namespace 41 //-------------------------------------------------------------------------------------------------… 76 //-------------------------------------------------------------------------------------------------… 94 Get<MeshCoP::Commissioner>().HandleTmf<kUriRelayRx>(aMessage, aMessageInfo); in HandleTmf() 151 Case(kUriDatasetChanged, MeshCoP::Commissioner); in HandleResource() 198 …return static_cast<Agent *>(aContext)->IsTmfMessage(aMessageInfo.GetPeerAddr(), aMessageInfo.GetSo… in Filter() 290 return static_cast<SecureAgent *>(aContext)->HandleDtlsAccept(); in HandleDtlsAccept() 315 Get<MeshCoP::Commissioner>().HandleTmf<kUriJoinerFinalize>(aMessage, aMessageInfo); in HandleResource() 327 } // namespace ot
|
| /external/ot-br-posix/ |
| D | README.md | 1 …ot-gh-action-build-svg]][ot-gh-action-build] [![Docker Status][ot-gh-action-docker-svg]][ot-gh-act… 3 --- 7 …, a Thread Border Router connects a Thread network to other IP-based networks, such as Wi-Fi or Et… 11 - End-to-end IP connectivity via routing between Thread devices and other external IP networks 12 - External Thread Commissioning (for example, a mobile phone) to authenticate and join a Thread dev… 14 <a href="https://www.threadgroup.org/What-is-Thread#certifiedproducts"> 22 - Web UI for configuration and management 23 - Thread Border Agent to support an External Commissioner 24 - DHCPv6 Prefix Delegation to obtain IPv6 prefixes for a Thread network 25 - NAT64 for connecting to IPv4 networks [all …]
|
| /external/openthread/tests/unit/ |
| D | test_pskc.cpp | 30 #include "meshcop/commissioner.hpp" 36 namespace ot { namespace 112 } // namespace ot 119 ot::MeshCoP::TestMinimumPassphrase(); in main() 120 ot::MeshCoP::TestMaximumPassphrase(); in main() 121 ot::MeshCoP::TestExampleInSpec(); in main() 124 printf("PSKc generation is not supported on non-ftd build\n"); in main()
|