Home
last modified time | relevance | path

Searched refs:GetSource (Results 1 – 23 of 23) sorted by relevance

/openthread-latest/src/core/net/
Dip6.cpp171 mMpl.InitOption(mplOption, aHeader.GetSource()); in AddMplOption()
267 mMpl.InitOption(mplOption, aHeader.GetSource()); in InsertMplOption()
458 … Checksum::UpdateMessageChecksum(aMessage, header.GetSource(), header.GetDestination(), aIpProto); in SendDatagram()
531 … SuccessOrExit(error = mMpl.ProcessOption(aMessage, offsetRange, aHeader.GetSource(), aReceive)); in HandleOptions()
648 …headerBuffer.GetSource() == header.GetSource() && headerBuffer.GetDestination() == header.GetDesti… in HandleFragment()
769 messageInfo.SetPeerAddr(header.GetSource()); in SendIcmpError()
876 messageInfo.SetPeerAddr(aIp6Header.GetSource()); in Receive()
950 if (Get<Mle::Mle>().IsMeshLocalAddress(aHeader.GetSource())) in PassToHost()
1024 …(aHeader.GetSource().IsLinkLocalUnicast() || (Get<Mle::Mle>().IsMeshLocalAddress(aHeader.GetSource in PassToHost()
1043 VerifyOrExit(!header.GetSource().IsMulticast(), error = kErrorInvalidSourceAddress); in SendRaw()
[all …]
Dnat64_translator.cpp136 mapping = FindOrAllocateMapping(ip6Header.GetSource()); in TranslateFromIp6()
139 …LogWarn("failed to get a mapping for %s (mapping pool full?)", ip6Header.GetSource().ToString().As… in TranslateFromIp6()
176 Checksum::UpdateMessageChecksum(aMessage, ip4Header.GetSource(), ip4Header.GetDestination(), in TranslateFromIp6()
241 ip6Header.GetSource().SynthesizeFromIp4Address(mNat64Prefix, ip4Header.GetSource()); in TranslateToIp6()
271 Checksum::UpdateMessageChecksum(aMessage, ip6Header.GetSource(), ip6Header.GetDestination(), in TranslateToIp6()
Dip4_types.hpp435 Address &GetSource(void) { return mSource; } in GetSource() function in ot::Ip4::Header
442 const Address &GetSource(void) const { return mSource; } in GetSource() function in ot::Ip4::Header
Dip6_headers.hpp257 Address &GetSource(void) { return mSource; } in GetSource() function in ot::Ip6::Header
264 const Address &GetSource(void) const { return mSource; } in GetSource() function in ot::Ip6::Header
Dip6.hpp505 const Address &GetSourceAddress(void) const { return mIp6Header.GetSource(); } in GetSourceAddress()
/openthread-latest/src/core/thread/
Dlowpan.cpp247 FindContextToCompressAddress(ip6Header.GetSource(), srcContext); in Compress()
335 if (ip6Header.GetSource().IsUnspecified()) in Compress()
339 else if (ip6Header.GetSource().IsLinkLocalUnicast()) in Compress()
342 …error = CompressSourceIid(aMacAddrs.mSource, ip6Header.GetSource(), srcContext, hcCtl, aFrameBuild… in Compress()
348 …error = CompressSourceIid(aMacAddrs.mSource, ip6Header.GetSource(), srcContext, hcCtl, aFrameBuild… in Compress()
352 SuccessOrExit(error = aFrameBuilder.Append(ip6Header.GetSource())); in Compress()
691 SuccessOrExit(aFrameData.Read(aIp6Header.GetSource())); in DecompressBaseHeader()
697 SuccessOrExit(aFrameData.Read(aIp6Header.GetSource().GetIid())); in DecompressBaseHeader()
701 aIp6Header.GetSource().mFields.m8[11] = 0xff; in DecompressBaseHeader()
702 aIp6Header.GetSource().mFields.m8[12] = 0xfe; in DecompressBaseHeader()
[all …]
Dmesh_forwarder_ftd.cpp377 mMeshSource = meshHeader.GetSource(); in UpdateMeshRoute()
440 …Get<NetworkData::Leader>().RouteLookup(aIp6Header.GetSource(), aIp6Header.GetDestination(), mMeshD… in UpdateIp6RouteFtd()
583 aRxInfo.mMacAddrs.mSource.SetShort(meshHeader.GetSource()); in HandleMesh()
862 aMeshAddrs.mSource.SetShort(meshHeader.GetSource()); in LogMeshFragmentHeader()
Dmesh_forwarder.cpp234 VerifyOrExit(!Get<ThreadNetif>().HasUnicastAddress(ip6Header.GetSource())); in UpdateEcnOrDrop()
287 …FwdFrameInfo *entry = FindFwdFrameInfoEntry(meshHeader.GetSource(), fragmentHeader.GetDatagramTag(… in UpdateEcnOrDrop()
316 …FwdFrameInfo *entry = FindFwdFrameInfoEntry(meshHeader.GetSource(), fragmentHeader.GetDatagramTag(… in UpdateEcnOrDrop()
629 VerifyOrExit(!ip6Header.GetSource().IsMulticast(), error = kErrorDrop); in UpdateIp6Route()
631 GetMacSourceAddress(ip6Header.GetSource(), mMacAddrs.mSource); in UpdateIp6Route()
Dlowpan.hpp385 uint16_t GetSource(void) const { return mSource; } in GetSource() function in ot::Lowpan::MeshHeader
Dindirect_sender.cpp370 Get<MeshForwarder>().GetMacSourceAddress(ip6Header.GetSource(), macAddrs.mSource); in PrepareDataFrame()
/openthread-latest/src/core/utils/
Dping_sender.hpp99 Ip6::Address &GetSource(void) { return AsCoreType(&mSource); } in GetSource() function in ot::Utils::PingSender::Config
106 const Ip6::Address &GetSource(void) const { return AsCoreType(&mSource); } in GetSource() function in ot::Utils::PingSender::Config
Dping_sender.cpp127 messageInfo.SetSockAddr(mConfig.GetSource()); in SendPing()
/openthread-latest/tests/unit/
Dtest_ip4_header.cpp74 VerifyOrQuit(header.GetSource().mFields.m32 == 0); in TestIp4Header()
87 VerifyOrQuit(header.GetSource() == source); in TestIp4Header()
Dtest_ip6_header.cpp79 VerifyOrQuit(header.GetSource().IsUnspecified()); in TestIp6Header()
93 VerifyOrQuit(header.GetSource() == source); in TestIp6Header()
Dtest_lowpan.hpp125 IgnoreError(mIpHeader.GetSource().FromString(aSource)); in SetIpHeader()
150 IgnoreError(mIpTunneledHeader.GetSource().FromString(aSource)); in SetIpTunneledHeader()
Dtest_lowpan.cpp1877 VerifyOrQuit(meshHeader.GetSource() == kSourceAddr, "failed after Init()"); in TestLowpanMeshHeader()
1894 VerifyOrQuit(meshHeader.GetSource() == kSourceAddr, "failed after ParseFrom()"); in TestLowpanMeshHeader()
1905 VerifyOrQuit(meshHeader.GetSource() == kSourceAddr, "failed after Init()"); in TestLowpanMeshHeader()
1922 VerifyOrQuit(meshHeader.GetSource() == kSourceAddr, "failed after ParseFrom()"); in TestLowpanMeshHeader()
1937 VerifyOrQuit(meshHeader.GetSource() == kSourceAddr, "failed after ParseFrom()"); in TestLowpanMeshHeader()
Dtest_mac_frame.cpp396 VerifyOrQuit(panId == frameInfo.mPanIds.GetSource()); in TestMacHeader()
/openthread-latest/src/core/radio/
Dtrel_link.cpp343 VerifyOrExit(aPacket.GetHeader().GetSource() != Get<Mac::Mac>().GetExtAddress()); in ProcessReceivedPacket()
346 mRxPacketPeer = Get<Interface>().FindPeer(aPacket.GetHeader().GetSource()); in ProcessReceivedPacket()
426 srcAddress.SetExtended(aAckPacket.GetHeader().GetSource()); in HandleAck()
470 ackPacket.GetHeader().SetDestination(aRxPacket.GetHeader().GetSource()); in SendAck()
Dtrel_packet.cpp95 GetSource().ToString().AsCString()); in ToString()
Dtrel_packet.hpp172 const Mac::ExtAddress &GetSource(void) const { return mSource; } in GetSource() function in ot::Trel::Header
/openthread-latest/src/core/mac/
Dmac_types.hpp431 PanId GetSource(void) const { return mSource; } in GetSource() function in ot::Mac::PanIds
Dmac_frame.cpp89 (mPanIds.GetSource() == mPanIds.GetDestination())) in PrepareHeadersIn()
162 else if (mPanIds.GetSource() != mPanIds.GetDestination()) // Rows 9-14. in PrepareHeadersIn()
203 IgnoreError(builder.AppendLittleEndianUint16(mPanIds.GetSource())); in PrepareHeadersIn()
/openthread-latest/src/core/border_router/
Drouting_manager.cpp828 aIp6Header.GetSource().MatchesPrefix(prefixConfig.GetPrefix())) in CheckReachabilityToSendIcmpError()
850 LogInfo(" src: %s", aIp6Header.GetSource().ToString().AsCString()); in CheckReachabilityToSendIcmpError()
854 messageInfo.SetPeerAddr(aIp6Header.GetSource()); in CheckReachabilityToSendIcmpError()