33 enum class ICMP_PacketTypes : uint8_t {
35 ICMP_DEST_UNREACH = 3,
36 ICMP_ECHO_REQUEST = 8,
39 using ICMP_PacketTypes::ICMP_DEST_UNREACH;
40 using ICMP_PacketTypes::ICMP_ECHO_REPLY;
41 using ICMP_PacketTypes::ICMP_ECHO_REQUEST;
42 using ICMP_PacketTypes::ICMP_TTL_EXPIRE;
49 Stroika_Foundation_Common_STRUCT_PACKED (
struct PacketHeader {
50 ICMP_PacketTypes type;
57 static_assert (
sizeof (PacketHeader) == 12,
"Check Stroika_Foundation_Common_STRUCT_PACKED: ICMP::PacketHeader size wrong");
60 constexpr size_t ICMP_MIN{8};
77 nonvirtual uint8_t GetCode ()
const;
96 UnknownICMPPacket (ICMP_PacketTypes type);
101 nonvirtual ICMP_PacketTypes GetType ()
const;
104 ICMP_PacketTypes fType_;