Home
last modified time | relevance | path

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

12

/openthread-3.6.0/src/core/thread/
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 …]
Dkey_manager.cpp83 void SecurityPolicy::SetFlags(const uint8_t *aFlags, uint8_t aFlagsLength) in SetFlags() argument
89 mObtainNetworkKeyEnabled = aFlags[0] & kObtainNetworkKeyMask; in SetFlags()
90 mNativeCommissioningEnabled = aFlags[0] & kNativeCommissioningMask; in SetFlags()
91 mRoutersEnabled = aFlags[0] & kRoutersMask; in SetFlags()
92 mExternalCommissioningEnabled = aFlags[0] & kExternalCommissioningMask; in SetFlags()
93 mCommercialCommissioningEnabled = (aFlags[0] & kCommercialCommissioningMask) == 0; in SetFlags()
94 mAutonomousEnrollmentEnabled = (aFlags[0] & kAutonomousEnrollmentMask) == 0; in SetFlags()
95 mNetworkKeyProvisioningEnabled = (aFlags[0] & kNetworkKeyProvisioningMask) == 0; in SetFlags()
97 VerifyOrExit(aFlagsLength > sizeof(aFlags[0])); in SetFlags()
98 mTobleLinkEnabled = aFlags[1] & kTobleLinkMask; in SetFlags()
[all …]
Dnetwork_data_tlvs.hpp456 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() argument
501 static uint8_t FlagsWithoutPreference(uint8_t aFlags) { return (aFlags & ~kPreferenceMask); } in FlagsWithoutPreference() argument
511 …static int8_t PreferenceFromFlags(uint8_t aFlags) { return RoutePreferenceFromValue(aFlags >> kPre… in PreferenceFromFlags() argument
959 void SetFlags(uint16_t aFlags) { mFlags = BigEndian::HostSwap16(aFlags); } in SetFlags() argument
1066 static uint16_t FlagsWithoutPreference(uint16_t aFlags) { return (aFlags & ~kPreferenceMask); } in FlagsWithoutPreference() argument
1076 static int8_t PreferenceFromFlags(uint16_t aFlags) in PreferenceFromFlags() argument
1078 return RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> kPreferenceOffset)); in PreferenceFromFlags()
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_types.hpp216 void SetFromTlvFlags(uint16_t aFlags);
277 void SetFromTlvFlags(uint8_t aFlags);
Dnetwork_data_local.hpp173 …Error AddPrefix(const Ip6::Prefix &aPrefix, NetworkDataTlv::Type aSubTlvType, uint16_t aFlags, boo…
Dkey_manager.hpp104 void SetFlags(const uint8_t *aFlags, uint8_t aFlagsLength);
113 void GetFlags(uint8_t *aFlags, uint8_t aFlagsLength) const;
/openthread-3.6.0/src/core/api/
Dtcp_api.cpp71 otError otTcpConnect(otTcpEndpoint *aEndpoint, const otSockAddr *aSockName, uint32_t aFlags) in otTcpConnect() argument
73 return AsCoreType(aEndpoint).Connect(AsCoreType(aSockName), aFlags); in otTcpConnect()
76 otError otTcpSendByReference(otTcpEndpoint *aEndpoint, otLinkedBuffer *aBuffer, uint32_t aFlags) in otTcpSendByReference() argument
78 return AsCoreType(aEndpoint).SendByReference(*aBuffer, aFlags); in otTcpSendByReference()
81 otError otTcpSendByExtension(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags) in otTcpSendByExtension() argument
83 return AsCoreType(aEndpoint).SendByExtension(aNumBytes, aFlags); in otTcpSendByExtension()
93 otError otTcpCommitReceive(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags) in otTcpCommitReceive() argument
95 return AsCoreType(aEndpoint).CommitReceive(aNumBytes, aFlags); in otTcpCommitReceive()
Dtcp_ext_api.cpp62 uint32_t aFlags) in otTcpCircularSendBufferWrite() argument
65 return AsCoreType(aSendBuffer).Write(AsCoreType(aEndpoint), aData, aLength, *aWritten, aFlags); in otTcpCircularSendBufferWrite()
/openthread-3.6.0/include/openthread/
Dtcp.h423 otError otTcpConnect(otTcpEndpoint *aEndpoint, const otSockAddr *aSockName, uint32_t aFlags);
458 otError otTcpSendByReference(otTcpEndpoint *aEndpoint, otLinkedBuffer *aBuffer, uint32_t aFlags);
474 otError otTcpSendByExtension(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags);
525 otError otTcpCommitReceive(otTcpEndpoint *aEndpoint, size_t aNumBytes, uint32_t aFlags);
Dtcp_ext.h158 uint32_t aFlags);
Dinstance.h238 typedef void (*otStateChangedCallback)(otChangedFlags aFlags, void *aContext);
/openthread-3.6.0/src/core/net/
Dtcp6.hpp200 Error Connect(const SockAddr &aSockName, uint32_t aFlags);
227 Error SendByReference(otLinkedBuffer &aBuffer, uint32_t aFlags);
244 Error SendByExtension(size_t aNumBytes, uint32_t aFlags);
295 Error CommitReceive(size_t aNumBytes, uint32_t aFlags);
Dtcp6_ext.hpp88 …te(Tcp::Endpoint &aEndpoint, const void *aData, size_t aLength, size_t &aWritten, uint32_t aFlags);
Dtcp6_ext.cpp61 uint32_t aFlags) in Write() argument
87 if ((aFlags & OT_TCP_CIRCULAR_SEND_BUFFER_WRITE_MORE_TO_COME) != 0 && aLength < bytesFree) in Write()
Dtcp6.cpp166 Error Tcp::Endpoint::Connect(const SockAddr &aSockName, uint32_t aFlags) in Connect() argument
173 if (aFlags & OT_TCP_CONNECT_NO_FAST_OPEN) in Connect()
195 Error Tcp::Endpoint::SendByReference(otLinkedBuffer &aBuffer, uint32_t aFlags) in SendByReference() argument
213 …error = BsdErrorToOtError(tcp_usr_send(&tp, (aFlags & OT_TCP_SEND_MORE_TO_COME) != 0, &aBuffer, 0,… in SendByReference()
221 Error Tcp::Endpoint::SendByExtension(size_t aNumBytes, uint32_t aFlags) in SendByExtension() argument
224 bool moreToCome = (aFlags & OT_TCP_SEND_MORE_TO_COME) != 0; in SendByExtension()
269 Error Tcp::Endpoint::CommitReceive(size_t aNumBytes, uint32_t aFlags) in CommitReceive() argument
274 OT_UNUSED_VARIABLE(aFlags); in CommitReceive()
Dsntp_client.hpp141 void SetFlags(uint8_t aFlags) { mFlags = aFlags; } in SetFlags() argument
/openthread-3.6.0/src/cli/
Dcli_br.cpp146 otError Br::ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags) in ParsePrefixTypeArgs() argument
150 aFlags = 0; in ParsePrefixTypeArgs()
154 aFlags = kPrefixTypeFavored | kPrefixTypeLocal; in ParsePrefixTypeArgs()
160 aFlags = kPrefixTypeLocal; in ParsePrefixTypeArgs()
164 aFlags = kPrefixTypeFavored; in ParsePrefixTypeArgs()
Dcli_br.hpp96 otError ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags);
Dcli_link_metrics.cpp365 otError LinkMetrics::ParseLinkMetricsFlags(otLinkMetrics &aLinkMetrics, const Arg &aFlags) in ParseLinkMetricsFlags() argument
369 VerifyOrExit(!aFlags.IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParseLinkMetricsFlags()
373 for (const char *arg = aFlags.GetCString(); *arg != '\0'; arg++) in ParseLinkMetricsFlags()
Dcli_link_metrics.hpp88 otError ParseLinkMetricsFlags(otLinkMetrics &aLinkMetrics, const Arg &aFlags);
/openthread-3.6.0/src/posix/platform/
Dsystem.cpp63 static void processStateChange(otChangedFlags aFlags, void *aContext) in processStateChange() argument
68 OT_UNUSED_VARIABLE(aFlags); in processStateChange()
71 platformNetifStateChange(instance, aFlags); in processStateChange()
75 ot::Posix::InfraNetif::Get().HandleBackboneStateChange(instance, aFlags); in processStateChange()
Dinfra_if.hpp145 void HandleBackboneStateChange(otInstance *aInstance, otChangedFlags aFlags);
Dplatform-posix.h282 void platformNetifStateChange(otInstance *aInstance, otChangedFlags aFlags);
Dmulticast_routing.hpp66 void HandleStateChange(otInstance *aInstance, otChangedFlags aFlags);

12