Definitions and helper functions for when layer 4 is ICMP. More...
Classes | |
struct | Header |
ICMP header. More... | |
Enumerations | |
enum | Type { Type::EchoReply = 0, Type::DestinationUnreachable = 3, Type::RedirectMessage = 5, Type::EchoRequest = 8, Type::RouterAdvertisement = 9, Type::RouterSolicitation = 10, Type::TimeExceeded = 11, Type::ParameterProblem = 12, Type::Timestamp = 13, Type::TimestampReply = 14, Type::Unknown = 255 } |
ICMP types. More... | |
Functions | |
const Header * | get_header (const L3_IPv4::Header *l3) |
Get the L4_ICMP::Header. More... | |
Type | get_type (const Header *header) |
Get the type from the header. More... | |
uint16_t | get_payload_length (const L3_IPv4::Header *l3) |
Number of bytes in ICMP payload. More... | |
std::string | to_string (const Type &type) |
bool | is_known_type (const Type &type) |
Determine if the type is a known value. More... | |
bool | is_unknown_type (const Type &type) |
Determine if the type is unknown. More... | |
Definitions and helper functions for when layer 4 is ICMP.
|
strong |
ICMP types.
|
inline |
Get the L4_ICMP::Header.
|
inline |
Number of bytes in ICMP payload.
|
inline |
Get the type from the header.
|
inline |
Determine if the type is a known value.
|
inline |
Determine if the type is unknown.
|
inline |