icmp_header Struct Reference
[Libnet]

Internet control message header. More...

#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.


Detailed Description

Internet control message header.

Definition at line 58 of file icmp_header.h.


Field Documentation

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.

icmp_param_t reserved

Reserved field.

Must be zero.

Definition at line 86 of file icmp_header.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 2 07:45:59 2011 for HelenOS/USB by  doxygen 1.4.7