prot_icmp.h

ICMP protocol definitions.

Defines

ICMP_ER
ICMP_DUR
ICMP_SQ
ICMP_RD
ICMP_ECHO
ICMP_TE
ICMP_PP
ICMP_TS
ICMP_TSR
ICMP_IRQ
ICMP_IR
ICMP_AM
ICMP_AMR
ICMPH_TYPE(hdr)
ICMPH_CODE(hdr)
ICMPH_TYPE_SET(hdr, t)
ICMPH_CODE_SET(hdr, c)

Variables

PACK_STRUCT_BEGIN struct icmp_hdr PACK_STRUCT_STRUCT
struct icmp_hdr
#include <prot_icmp.h>

The standard ICMP header (unspecified 32 bit data)

Public Functions

PACK_STRUCT_FLD_8 (u8_t type)
PACK_STRUCT_FLD_8 (u8_t code)
PACK_STRUCT_FIELD (u16_t chksum)
PACK_STRUCT_FIELD (u32_t data)
struct icmp_echo_hdr
#include <prot_icmp.h>

This is the standard ICMP header only that the u32_t data is split to two u16_t like ICMP echo needs it.

Public Functions

PACK_STRUCT_FLD_8 (u8_t type)
PACK_STRUCT_FLD_8 (u8_t code)
PACK_STRUCT_FIELD (u16_t chksum)
PACK_STRUCT_FIELD (u16_t id)
PACK_STRUCT_FIELD (u16_t seqno)