#pragma once #include #include namespace Kernel { struct ICMPHeader { uint8_t type; uint8_t code; BAN::NetworkEndian checksum; BAN::NetworkEndian rest; }; static_assert(sizeof(ICMPHeader) == 8); enum ICMPType : uint8_t { EchoReply = 0x00, DestinationUnreachable = 0x03, EchoRequest = 0x08, }; }