Home
last modified time | relevance | path

Searched refs:aFlags (Results 1 – 25 of 30) sorted by relevance

12

/openthread-2.7.6/src/core/thread/
Dkey_manager.cpp80 void SecurityPolicy::SetFlags(const uint8_t *aFlags, uint8_t aFlagsLength) in SetFlags() argument
86 mObtainNetworkKeyEnabled = aFlags[0] & kObtainNetworkKeyMask; in SetFlags()
87 mNativeCommissioningEnabled = aFlags[0] & kNativeCommissioningMask; in SetFlags()
88 mRoutersEnabled = aFlags[0] & kRoutersMask; in SetFlags()
89 mExternalCommissioningEnabled = aFlags[0] & kExternalCommissioningMask; in SetFlags()
90 mBeaconsEnabled = aFlags[0] & kBeaconsMask; in SetFlags()
91 mCommercialCommissioningEnabled = (aFlags[0] & kCommercialCommissioningMask) == 0; in SetFlags()
92 mAutonomousEnrollmentEnabled = (aFlags[0] & kAutonomousEnrollmentMask) == 0; in SetFlags()
93 mNetworkKeyProvisioningEnabled = (aFlags[0] & kNetworkKeyProvisioningMask) == 0; in SetFlags()
95 VerifyOrExit(aFlagsLength > sizeof(aFlags[0])); in SetFlags()
[all …]
Dnetwork_data_types.cpp146 void OnMeshPrefixConfig::SetFromTlvFlags(uint16_t aFlags) in SetFromTlvFlags() argument
148 mPreferred = ((aFlags & BorderRouterEntry::kPreferredFlag) != 0); in SetFromTlvFlags()
149 mSlaac = ((aFlags & BorderRouterEntry::kSlaacFlag) != 0); in SetFromTlvFlags()
150 mDhcp = ((aFlags & BorderRouterEntry::kDhcpFlag) != 0); in SetFromTlvFlags()
151 mConfigure = ((aFlags & BorderRouterEntry::kConfigureFlag) != 0); in SetFromTlvFlags()
152 mDefaultRoute = ((aFlags & BorderRouterEntry::kDefaultRouteFlag) != 0); in SetFromTlvFlags()
153 mOnMesh = ((aFlags & BorderRouterEntry::kOnMeshFlag) != 0); in SetFromTlvFlags()
154 mNdDns = ((aFlags & BorderRouterEntry::kNdDnsFlag) != 0); in SetFromTlvFlags()
155 mDp = ((aFlags & BorderRouterEntry::kDpFlag) != 0); in SetFromTlvFlags()
156 …mPreference = RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> BorderRouterEntry::kPrefer… in SetFromTlvFlags()
[all …]
Dnetwork_data_tlvs.hpp410 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() argument
446 static uint8_t FlagsWithoutPreference(uint8_t aFlags) { return (aFlags & ~kPreferenceMask); } in FlagsWithoutPreference() argument
456 …static int8_t PreferenceFromFlags(uint8_t aFlags) { return RoutePreferenceFromValue(aFlags >> kPre… in PreferenceFromFlags() argument
906 void SetFlags(uint16_t aFlags) { mFlags = HostSwap16(aFlags); } in SetFlags() argument
1013 static uint16_t FlagsWithoutPreference(uint16_t aFlags) { return (aFlags & ~kPreferenceMask); } in FlagsWithoutPreference() argument
1023 static int8_t PreferenceFromFlags(uint16_t aFlags) in PreferenceFromFlags() argument
1025 return RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> kPreferenceOffset)); in PreferenceFromFlags()
Dlink_metrics_tlvs.hpp179 explicit TypeIdFlags(uint8_t aFlags) in TypeIdFlags() argument
180 : mFlags(aFlags) in TypeIdFlags()
288 void SetRawValue(uint8_t aFlags) { mFlags = aFlags; } in SetRawValue() argument
Dnetwork_data_types.hpp188 void SetFromTlvFlags(uint16_t aFlags);
249 void SetFromTlvFlags(uint8_t aFlags);
Dkey_manager.hpp102 void SetFlags(const uint8_t *aFlags, uint8_t aFlagsLength);
111 void GetFlags(uint8_t *aFlags, uint8_t aFlagsLength) const;
Dnetwork_data_local.cpp93 …Prefix(const Ip6::Prefix &aPrefix, NetworkDataTlv::Type aSubTlvType, uint16_t aFlags, bool aStable) in AddPrefix() argument
117 brTlv->GetEntry(0)->SetFlags(aFlags); in AddPrefix()
125 hasRouteTlv->GetEntry(0)->SetFlags(static_cast<uint8_t>(aFlags)); in AddPrefix()
Dnetwork_data_local.hpp173 …Error AddPrefix(const Ip6::Prefix &aPrefix, NetworkDataTlv::Type aSubTlvType, uint16_t aFlags, boo…
Dnetwork_data_leader_ftd.hpp290 void IncrementVersions(const ChangedFlags &aFlags);
Dnetwork_data_leader_ftd.cpp107 void Leader::IncrementVersions(const ChangedFlags &aFlags) in IncrementVersions() argument
109 if (aFlags.DidChange()) in IncrementVersions()
111 IncrementVersions(aFlags.DidStableChange()); in IncrementVersions()
/openthread-2.7.6/src/core/api/
Dtcp_api.cpp87 otError otTcpConnect(otTcpEndpoint *aEndpoint, const otSockAddr *aSockName, uint32_t aFlags) in otTcpConnect() argument
91 return endpoint.Connect(*static_cast<const Ip6::SockAddr *>(aSockName), aFlags); in otTcpConnect()
94 otError otTcpSendByReference(otTcpEndpoint *aEndpoint, otLinkedBuffer *aBuffer, uint32_t aFlags) in otTcpSendByReference() argument
98 return endpoint.SendByReference(*aBuffer, aFlags); in otTcpSendByReference()
101 otError otTcpSendByExtension(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags) in otTcpSendByExtension() argument
105 return endpoint.SendByExtension(aNumBytes, aFlags); in otTcpSendByExtension()
122 otError otTcpCommitReceive(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags) in otTcpCommitReceive() argument
126 return endpoint.CommitReceive(aNumBytes, aFlags); in otTcpCommitReceive()
Dsrp_server_api.cpp138 otSrpServerServiceFlags aFlags, in otSrpServerHostFindNextService() argument
144 …return host->FindNextService(static_cast<const Srp::Server::Service *>(aPrevService), aFlags, aSer… in otSrpServerHostFindNextService()
/openthread-2.7.6/src/posix/platform/
Dbackbone.cpp87 void platformBackboneStateChange(otInstance *aInstance, otChangedFlags aFlags) in platformBackboneStateChange() argument
90 OT_UNUSED_VARIABLE(aFlags); in platformBackboneStateChange()
93 sMulticastRoutingManager.HandleStateChange(aInstance, aFlags); in platformBackboneStateChange()
Dsystem.cpp60 static void processStateChange(otChangedFlags aFlags, void *aContext) in processStateChange() argument
65 OT_UNUSED_VARIABLE(aFlags); in processStateChange()
68 platformNetifStateChange(instance, aFlags); in processStateChange()
74 platformBackboneStateChange(instance, aFlags); in processStateChange()
Dplatform-posix.h303 void platformNetifStateChange(otInstance *aInstance, otChangedFlags aFlags);
494 void platformBackboneStateChange(otInstance *aInstance, otChangedFlags aFlags);
Dmulticast_routing.hpp65 void HandleStateChange(otInstance *aInstance, otChangedFlags aFlags);
Dmulticast_routing.cpp463 void MulticastRoutingManager::HandleStateChange(otInstance *aInstance, otChangedFlags aFlags) in HandleStateChange() argument
465 if (aFlags & OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE) in HandleStateChange()
/openthread-2.7.6/src/core/net/
Dtcp6.cpp102 Error Tcp::Endpoint::Connect(const SockAddr &aSockName, uint32_t aFlags) in Connect() argument
105 OT_UNUSED_VARIABLE(aFlags); in Connect()
110 Error Tcp::Endpoint::SendByReference(otLinkedBuffer &aBuffer, uint32_t aFlags) in SendByReference() argument
113 OT_UNUSED_VARIABLE(aFlags); in SendByReference()
118 Error Tcp::Endpoint::SendByExtension(size_t aNumBytes, uint32_t aFlags) in SendByExtension() argument
121 OT_UNUSED_VARIABLE(aFlags); in SendByExtension()
138 Error Tcp::Endpoint::CommitReceive(size_t aNumBytes, uint32_t aFlags) in CommitReceive() argument
141 OT_UNUSED_VARIABLE(aFlags); in CommitReceive()
Dtcp6.hpp177 Error Connect(const SockAddr &aSockName, uint32_t aFlags);
204 Error SendByReference(otLinkedBuffer &aBuffer, uint32_t aFlags);
221 Error SendByExtension(size_t aNumBytes, uint32_t aFlags);
272 Error CommitReceive(size_t aNumBytes, uint32_t aFlags);
Dsntp_client.hpp94 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() argument
Dsrp_server.hpp335 bool MatchesFlags(Flags aFlags) const;
451 Service::Flags aFlags = kFlagsAnyService,
Dsrp_server.cpp1382 bool Server::Service::MatchesFlags(Flags aFlags) const in MatchesFlags()
1388 VerifyOrExit(aFlags & kFlagSubType); in MatchesFlags()
1392 VerifyOrExit(aFlags & kFlagBaseType); in MatchesFlags()
1397 VerifyOrExit(aFlags & kFlagDeleted); in MatchesFlags()
1401 VerifyOrExit(aFlags & kFlagActive); in MatchesFlags()
1619 Service::Flags aFlags, in FindNextService() argument
1627 if (!service->MatchesFlags(aFlags)) in FindNextService()
/openthread-2.7.6/include/openthread/
Dtcp.h372 otError otTcpConnect(otTcpEndpoint *aEndpoint, const otSockAddr *aSockName, uint32_t aFlags);
407 otError otTcpSendByReference(otTcpEndpoint *aEndpoint, otLinkedBuffer *aBuffer, uint32_t aFlags);
423 otError otTcpSendByExtension(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags);
474 otError otTcpCommitReceive(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags);
Dinstance.h181 typedef void (*otStateChangedCallback)(otChangedFlags aFlags, void *aContext);
Dsrp_server.h392 otSrpServerServiceFlags aFlags,

12