Searched refs:headerBytes (Results 1 – 3 of 3) sorted by relevance
/openthread-3.7.0/tests/unit/ |
D | test_ip4_header.cpp | 61 const uint8_t *headerBytes = reinterpret_cast<const uint8_t *>(&header); in TestIp4Header() local 92 VerifyOrQuit(BigEndian::ReadUint16(headerBytes + Header::kTotalLengthOffset) == kTotalLength, in TestIp4Header() 94 VerifyOrQuit(headerBytes[Header::kProtocolOffset] == kProtoIcmp, "kProtocol is incorrect"); in TestIp4Header() 95 VerifyOrQuit(headerBytes[Header::kTtlOffset] == kTtl, "kTtl is incorrect"); in TestIp4Header() 96 VerifyOrQuit(memcmp(&headerBytes[Header::kSourceAddressOffset], &source, sizeof(source)) == 0, in TestIp4Header() 98 …VerifyOrQuit(memcmp(&headerBytes[Header::kDestinationAddressOffset], &destination, sizeof(destinat… in TestIp4Header() 114 VerifyOrQuit(memcmp(&headerBytes[Header::kSourceAddressOffset], &source, sizeof(source)) == 0, in TestIp4Header() 116 …VerifyOrQuit(memcmp(&headerBytes[Header::kDestinationAddressOffset], &destination, sizeof(destinat… in TestIp4Header() 118 VerifyOrQuit(BigEndian::ReadUint16(headerBytes + Header::kTotalLengthOffset) == kTotalLength, in TestIp4Header() 120 VerifyOrQuit(headerBytes[Header::kProtocolOffset] == kProtoIcmp, "kProtocol is incorrect"); in TestIp4Header() [all …]
|
D | test_ip6_header.cpp | 65 const uint8_t *headerBytes = reinterpret_cast<const uint8_t *>(&header); in TestIp6Header() local 98 …VerifyOrQuit(BigEndian::ReadUint16(headerBytes + Header::kPayloadLengthFieldOffset) == kPayloadLen… in TestIp6Header() 100 …VerifyOrQuit(headerBytes[Header::kNextHeaderFieldOffset] == kProtoUdp, "kNextHeaderFieldOffset is … in TestIp6Header() 101 …VerifyOrQuit(headerBytes[Header::kHopLimitFieldOffset] == kHopLimit, "kHopLimitFieldOffset is inco… in TestIp6Header() 102 VerifyOrQuit(memcmp(&headerBytes[Header::kSourceFieldOffset], &source, sizeof(source)) == 0, in TestIp6Header() 104 …VerifyOrQuit(memcmp(&headerBytes[Header::kDestinationFieldOffset], &destination, sizeof(destinatio… in TestIp6Header()
|
/openthread-3.7.0/src/core/crypto/ |
D | aes_ccm.cpp | 161 const uint8_t *headerBytes = reinterpret_cast<const uint8_t *>(aHeader); in Header() local 174 mBlock[mBlockLength++] ^= headerBytes[i]; in Header()
|