Home
last modified time | relevance | path

Searched refs:aSource (Results 1 – 24 of 24) sorted by relevance

/openthread-3.6.0/examples/platforms/utils/
Dencoding.h52 static inline uint64_t otEncodingReadUint64Le(const uint8_t *aSource) in otEncodingReadUint64Le() argument
56 value |= (uint64_t)aSource[0]; in otEncodingReadUint64Le()
57 value |= ((uint64_t)aSource[1]) << 8; in otEncodingReadUint64Le()
58 value |= ((uint64_t)aSource[2]) << 16; in otEncodingReadUint64Le()
59 value |= ((uint64_t)aSource[3]) << 24; in otEncodingReadUint64Le()
60 value |= ((uint64_t)aSource[4]) << 32; in otEncodingReadUint64Le()
61 value |= ((uint64_t)aSource[5]) << 40; in otEncodingReadUint64Le()
62 value |= ((uint64_t)aSource[6]) << 48; in otEncodingReadUint64Le()
63 value |= ((uint64_t)aSource[7]) << 56; in otEncodingReadUint64Le()
/openthread-3.6.0/src/posix/platform/
Dmainloop.cpp39 void Manager::Add(Source &aSource) in Add() argument
41 assert(aSource.mNext == nullptr); in Add()
43 aSource.mNext = mSources; in Add()
44 mSources = &aSource; in Add()
47 void Manager::Remove(Source &aSource) in Remove() argument
51 if (*pnext == &aSource) in Remove()
53 *pnext = aSource.mNext; in Remove()
58 aSource.mNext = nullptr; in Remove()
Dmainloop.hpp107 void Add(Source &aSource);
115 void Remove(Source &aSource);
/openthread-3.6.0/src/core/net/
Dchecksum.cpp97 void Checksum::Calculate(const Ip6::Address &aSource, in Calculate() argument
107 AddData(aSource.GetBytes(), sizeof(Ip6::Address)); in Calculate()
123 void Checksum::Calculate(const Ip4::Address &aSource, in Calculate() argument
135 AddData(aSource.GetBytes(), sizeof(Ip4::Address)); in Calculate()
169 const Ip6::Address &aSource, in UpdateMessageChecksum() argument
196 checksum.Calculate(aSource, aDestination, aIpProto, aMessage); in UpdateMessageChecksum()
204 const Ip4::Address &aSource, in UpdateMessageChecksum() argument
231 checksum.Calculate(aSource, aDestination, aIpProto, aMessage); in UpdateMessageChecksum()
Dchecksum.hpp84 const Ip6::Address &aSource,
100 const Ip4::Address &aSource,
124 void Calculate(const Ip6::Address &aSource,
128 void Calculate(const Ip4::Address &aSource,
Dip4_types.hpp482 void SetSource(const Address &aSource) { mSource = aSource; } in SetSource() argument
Dip6_headers.hpp297 void SetSource(const Address &aSource) { mSource = aSource; } in SetSource() argument
Dip6.hpp399 Error RouteLookup(const Address &aSource, const Address &aDestination) const;
Dip6.cpp1434 Error Ip6::RouteLookup(const Address &aSource, const Address &aDestination) const in RouteLookup() argument
1439 error = Get<NetworkData::Leader>().RouteLookup(aSource, aDestination, rloc); in RouteLookup()
/openthread-3.6.0/tests/unit/
Dtest_lowpan.hpp125 const char *aSource, in SetIpHeader() argument
132 IgnoreError(mIpHeader.GetSource().FromString(aSource)); in SetIpHeader()
151 const char *aSource, in SetIpTunneledHeader() argument
158 IgnoreError(mIpTunneledHeader.GetSource().FromString(aSource)); in SetIpTunneledHeader()
184 void SetUDPHeader(uint16_t aSource, uint16_t aDestination, uint16_t aLength, uint16_t aChecksum) in SetUDPHeader() argument
186 mUdpHeader.SetSourcePort(aSource); in SetUDPHeader()
Dtest_checksum.cpp74 uint16_t CalculateChecksum(const Ip6::Address &aSource, in CalculateChecksum() argument
103 data.mPseudoHeader.mSource = aSource; in CalculateChecksum()
113 uint16_t CalculateChecksum(const Ip4::Address &aSource, in CalculateChecksum() argument
142 data.mPseudoHeader.mSource = aSource; in CalculateChecksum()
/openthread-3.6.0/src/core/common/
Dstring.cpp163 Error StringCopy(char *aTargetBuffer, uint16_t aTargetSize, const char *aSource, StringEncodingChec… in StringCopy() argument
168 if (aSource == nullptr) in StringCopy()
174 length = StringLength(aSource, aTargetSize); in StringCopy()
182 VerifyOrExit(IsValidUtf8String(aSource), error = kErrorParse); in StringCopy()
186 memcpy(aTargetBuffer, aSource, length + 1); // `+ 1` to also copy null char. in StringCopy()
Dstring.hpp182 Error StringCopy(char *TargetBuffer, uint16_t aTargetSize, const char *aSource, StringEncodingCheck…
200 const char *aSource, in StringCopy() argument
203 return StringCopy(aTargetBuffer, kSize, aSource, aEncodingCheck); in StringCopy()
/openthread-3.6.0/include/openthread/
Dlink_metrics.h117 typedef void (*otLinkMetricsReportCallback)(const otIp6Address *aSource,
129 typedef void (*otLinkMetricsMgmtResponseCallback)(const otIp6Address *aSource,
/openthread-3.6.0/src/core/radio/
Dtrel_packet.hpp197 void SetSource(const Mac::ExtAddress &aSource) { mSource = aSource; } in SetSource() argument
/openthread-3.6.0/src/core/border_router/
Dinfra_if.cpp96 void InfraIf::HandledReceived(uint32_t aIfIndex, const Ip6::Address &aSource, const Icmp6Packet &aP… in HandledReceived() argument
105 Get<RoutingManager>().HandleReceived(aPacket, aSource); in HandledReceived()
Dinfra_if.hpp160 … void HandledReceived(uint32_t aIfIndex, const Ip6::Address &aSource, const Icmp6Packet &aPacket);
/openthread-3.6.0/src/ncp/
Dncp_base.hpp400 static void HandleLinkMetricsReport_Jump(const otIp6Address *aSource,
405 void HandleLinkMetricsReport(const otIp6Address *aSource,
409 static void HandleLinkMetricsMgmtResponse_Jump(const otIp6Address *aSource,
413 void HandleLinkMetricsMgmtResponse(const otIp6Address *aSource, otLinkMetricsStatus aStatus);
Dncp_base_mtd.cpp4234 void NcpBase::HandleLinkMetricsReport_Jump(const otIp6Address *aSource, in HandleLinkMetricsReport_Jump() argument
4239 static_cast<NcpBase *>(aContext)->HandleLinkMetricsReport(aSource, aMetricsValues, aStatus); in HandleLinkMetricsReport_Jump()
4242 void NcpBase::HandleLinkMetricsReport(const otIp6Address *aSource, in HandleLinkMetricsReport() argument
4249 SuccessOrExit(mEncoder.WriteIp6Address(*aSource)); in HandleLinkMetricsReport()
4259 void NcpBase::HandleLinkMetricsMgmtResponse_Jump(const otIp6Address *aSource, in HandleLinkMetricsMgmtResponse_Jump() argument
4263 static_cast<NcpBase *>(aContext)->HandleLinkMetricsMgmtResponse(aSource, aStatus); in HandleLinkMetricsMgmtResponse_Jump()
4266 void NcpBase::HandleLinkMetricsMgmtResponse(const otIp6Address *aSource, otLinkMetricsStatus aStatu… in HandleLinkMetricsMgmtResponse() argument
4271 SuccessOrExit(mEncoder.WriteIp6Address(*aSource)); in HandleLinkMetricsMgmtResponse()
/openthread-3.6.0/src/cli/
Dcli_srp_client.cpp45 static otError CopyString(char *aDest, uint16_t aDestSize, const char *aSource) in CopyString() argument
51 size_t len = strlen(aSource); in CopyString()
54 memcpy(aDest, aSource, len + 1); in CopyString()
/openthread-3.6.0/src/core/thread/
Dnetwork_data_leader.cpp259 Error Leader::RouteLookup(const Ip6::Address &aSource, const Ip6::Address &aDestination, uint16_t &… in RouteLookup() argument
264 while ((prefixTlv = FindNextMatchingPrefixTlv(aSource, prefixTlv)) != nullptr) in RouteLookup()
Dlowpan.hpp306 void Init(uint16_t aSource, uint16_t aDestination, uint8_t aHopsLeft);
Dnetwork_data_leader.hpp162 …Error RouteLookup(const Ip6::Address &aSource, const Ip6::Address &aDestination, uint16_t &aRloc16…
Dlowpan.cpp1081 void MeshHeader::Init(uint16_t aSource, uint16_t aDestination, uint8_t aHopsLeft) in Init() argument
1083 mSource = aSource; in Init()