#include <icmp_header.h>
Data Fields | |
uint16_t | checksum |
The checksum is the 16-bit ones's complement of the one's complement sum of the ICMP message starting with the ICMP Type. | |
uint8_t | code |
The error code for the datagram reported by the ICMP message. | |
uint8_t | type |
The type of the message. | |
union { | |
icmp_echo_t echo | |
Echo specific data. | |
struct { | |
icmp_param_t mtu | |
Proposed MTU. | |
icmp_param_t reserved | |
Reserved field. | |
} frag | |
Fragmentation needed specific data. | |
in_addr_t gateway | |
Proposed gateway value. | |
struct { | |
icmp_param_t pointer | |
Problem pointer. | |
icmp_param_t reserved | |
Reserved field. | |
} param | |
Parameter problem specific data. | |
} | un |
Message specific data. |
Definition at line 58 of file icmp_header.h.
uint16_t checksum |
The checksum is the 16-bit ones's complement of the one's complement sum of the ICMP message starting with the ICMP Type.
For computing the checksum, the checksum field should be zero. If the checksum does not match the contents, the datagram is discarded.
Definition at line 74 of file icmp_header.h.
uint8_t code |
The error code for the datagram reported by the ICMP message.
The interpretation is dependent on the message type.
Definition at line 66 of file icmp_header.h.