[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:
Abtin Keshavarzian
2026-06-02 07:45:50 -07:00
committed by GitHub
parent f6598900cf
commit 7ad13c8adb
5 changed files with 121 additions and 121 deletions
+2 -2
View File
@@ -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)));