Lines Matching refs:ip6Header

245     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()
348 else if (ip6Header.GetSource().IsLinkLocal()) in Compress()
351 …error = CompressSourceIid(aMacAddrs.mSource, ip6Header.GetSource(), srcContext, hcCtl, aFrameBuild… in Compress()
357 …error = CompressSourceIid(aMacAddrs.mSource, ip6Header.GetSource(), srcContext, hcCtl, aFrameBuild… in Compress()
361 SuccessOrExit(error = aFrameBuilder.Append(ip6Header.GetSource())); in Compress()
365 if (ip6Header.GetDestination().IsMulticast()) in Compress()
367 SuccessOrExit(error = CompressMulticast(ip6Header.GetDestination(), hcCtl, aFrameBuilder)); in Compress()
369 else if (ip6Header.GetDestination().IsLinkLocal()) in Compress()
371 …SuccessOrExit(error = CompressDestinationIid(aMacAddrs.mDestination, ip6Header.GetDestination(), d… in Compress()
377 …SuccessOrExit(error = CompressDestinationIid(aMacAddrs.mDestination, ip6Header.GetDestination(), d… in Compress()
382 SuccessOrExit(error = aFrameBuilder.Append(ip6Header.GetDestination())); in Compress()
387 aMessage.MoveOffset(sizeof(ip6Header)); in Compress()
389 nextHeader = static_cast<uint8_t>(ip6Header.GetNextHeader()); in Compress()
976 Ip6::Header ip6Header; in Decompress() local
981 SuccessOrExit(DecompressBaseHeader(ip6Header, compressed, aMacAddrs, aFrameData)); in Decompress()
983 SuccessOrExit(aMessage.Append(ip6Header)); in Decompress()
984 aMessage.MoveOffset(sizeof(ip6Header)); in Decompress()