mirror of
https://github.com/espressif/openthread.git
synced 2026-10-22 07:28:17 +00:00
[ip4] use Icmp4Header directly for ICMPv4 (#13180)
This commit updates the codebase to use the `Icmp4Header` type directly, replacing the nested `Ip4::Icmp::Header` type. The empty `Ip4::Icmp` wrapper class is removed to simplify the header definition. This change aligns the ICMPv4 header structure with the flat naming conventions used for other IP headers (e.g., `Ip6::Icmp6Header`, `Ip6::UpdHeader`).
This commit is contained in:
@@ -432,8 +432,8 @@ void TestIcmp4MessageChecksum(void)
|
||||
Ip4::Address source;
|
||||
Ip4::Address dest;
|
||||
|
||||
uint8_t mPayload[sizeof(kExampleIcmpMessage)];
|
||||
Ip4::Icmp::Header icmpHeader;
|
||||
uint8_t mPayload[sizeof(kExampleIcmpMessage)];
|
||||
Ip4::Icmp4Header icmpHeader;
|
||||
|
||||
SuccessOrQuit(message->AppendBytes(kExampleIcmpMessage, sizeof(kExampleIcmpMessage)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user