Home
last modified time | relevance | path

Searched refs:ip6Header (Results 1 – 8 of 8) sorted by relevance

/openthread-3.6.0/src/core/net/
Dnat64_translator.cpp118 Ip6::Header ip6Header; in TranslateFromIp6() local
128 if (ip6Header.ParseFrom(aMessage) != kErrorNone) in TranslateFromIp6()
135 if (!ip6Header.GetDestination().MatchesPrefix(mNat64Prefix)) in TranslateFromIp6()
140 mapping = FindOrAllocateMapping(ip6Header.GetSource()); in TranslateFromIp6()
143 …LogWarn("failed to get a mapping for %s (mapping pool full?)", ip6Header.GetSource().ToString().As… in TranslateFromIp6()
153 …ip4Header.GetDestination().ExtractFromIp6Address(mNat64Prefix.mLength, ip6Header.GetDestination()); in TranslateFromIp6()
154 ip4Header.SetTtl(ip6Header.GetHopLimit()); in TranslateFromIp6()
157 switch (ip6Header.GetNextHeader()) in TranslateFromIp6()
190 mCounters.Count6To4Packet(ip6Header.GetNextHeader(), ip6Header.GetPayloadLength()); in TranslateFromIp6()
191 mapping->mCounters.Count6To4Packet(ip6Header.GetNextHeader(), ip6Header.GetPayloadLength()); in TranslateFromIp6()
[all …]
Dip6.cpp310 Header ip6Header; in RemoveMplOption() local
320 IgnoreError(aMessage.Read(offset, ip6Header)); in RemoveMplOption()
321 offset += sizeof(ip6Header); in RemoveMplOption()
322 VerifyOrExit(ip6Header.GetNextHeader() == kProtoHopOpts); in RemoveMplOption()
349 if (mplOffset == sizeof(ip6Header) + sizeof(hbh) && hbh.GetLength() == 0) in RemoveMplOption()
377 if (mplOffset == sizeof(ip6Header) + sizeof(hbh)) in RemoveMplOption()
380 ip6Header.SetNextHeader(hbh.GetNextHeader()); in RemoveMplOption()
388 aMessage.Write(sizeof(ip6Header), hbh); in RemoveMplOption()
391 ip6Header.SetPayloadLength(ip6Header.GetPayloadLength() - ExtensionHeader::kLengthUnitSize); in RemoveMplOption()
392 aMessage.Write(0, ip6Header); in RemoveMplOption()
Dtcp6.cpp636 struct ip6_hdr *ip6Header; in HandleMessage() local
658 ip6Header = reinterpret_cast<struct ip6_hdr *>(&aIp6Header); in HandleMessage()
674 nextAction = tcp_input(ip6Header, tcpHeader, &aMessage, tp, nullptr, &sig); in HandleMessage()
689 nextAction = tcp_input(ip6Header, tcpHeader, &aMessage, nullptr, tpl, &sig); in HandleMessage()
698 …tcp_dropwithreset(ip6Header, tcpHeader, nullptr, &InstanceLocator::GetInstance(), length - headerS… in HandleMessage()
/openthread-3.6.0/src/core/thread/
Dlowpan.cpp245 Ip6::Header ip6Header; in Compress() local
246 uint8_t *ip6HeaderBytes = reinterpret_cast<uint8_t *>(&ip6Header); in Compress()
254 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), ip6Header)); in Compress()
256 FindContextToCompressAddress(ip6Header.GetSource(), srcContext); in Compress()
257 FindContextToCompressAddress(ip6Header.GetDestination(), dstContext); in Compress()
306 switch (ip6Header.GetNextHeader()) in Compress()
319 … SuccessOrExit(error = aFrameBuilder.AppendUint8(static_cast<uint8_t>(ip6Header.GetNextHeader()))); in Compress()
324 switch (ip6Header.GetHopLimit()) in Compress()
339 SuccessOrExit(error = aFrameBuilder.AppendUint8(ip6Header.GetHopLimit())); in Compress()
344 if (ip6Header.GetSource().IsUnspecified()) in Compress()
[all …]
Dindirect_sender.cpp362 Ip6::Header ip6Header; in PrepareDataFrame() local
369 IgnoreError(aMessage.Read(0, ip6Header)); in PrepareDataFrame()
371 Get<MeshForwarder>().GetMacSourceAddress(ip6Header.GetSource(), macAddrs.mSource); in PrepareDataFrame()
373 if (ip6Header.GetDestination().IsLinkLocal()) in PrepareDataFrame()
375 … Get<MeshForwarder>().GetMacDestinationAddress(ip6Header.GetDestination(), macAddrs.mDestination); in PrepareDataFrame()
Dmesh_forwarder.cpp274 Ip6::Header ip6Header; in UpdateEcnOrDrop() local
276 IgnoreError(aMessage.Read(0, ip6Header)); in UpdateEcnOrDrop()
278 VerifyOrExit(!Get<ThreadNetif>().HasUnicastAddress(ip6Header.GetSource())); in UpdateEcnOrDrop()
280 isEcnCapable = (ip6Header.GetEcn() != Ip6::kEcnNotCapable); in UpdateEcnOrDrop()
289 switch (ip6Header.GetEcn()) in UpdateEcnOrDrop()
293 ip6Header.SetEcn(Ip6::kEcnMarked); in UpdateEcnOrDrop()
294 aMessage.Write(0, ip6Header); in UpdateEcnOrDrop()
661 Ip6::Header ip6Header; in UpdateIp6Route() local
665 IgnoreError(aMessage.Read(0, ip6Header)); in UpdateIp6Route()
667 VerifyOrExit(!ip6Header.GetSource().IsMulticast(), error = kErrorDrop); in UpdateIp6Route()
[all …]
Dmesh_forwarder_ftd.cpp62 Ip6::Header ip6Header; in SendMessage() local
63 const Ip6::Address &destination = ip6Header.GetDestination(); in SendMessage()
65 IgnoreError(message.Read(0, ip6Header)); in SendMessage()
321 Ip6::Header ip6Header; in RemoveDataResponseMessages() local
330 IgnoreError(message.Read(0, ip6Header)); in RemoveDataResponseMessages()
332 if (!(ip6Header.GetDestination().IsMulticast())) in RemoveDataResponseMessages()
Daddress_resolver.cpp1049 Ip6::Header ip6Header; in HandleIcmpReceive() local
1053 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), ip6Header)); in HandleIcmpReceive()
1055 Remove(ip6Header.GetDestination(), kReasonReceivedIcmpDstUnreachNoRoute); in HandleIcmpReceive()