friendev EtherDune TCP/IP library
Public Member Functions | Public Attributes | List of all members
ICMPHeader Struct Reference

ICMP Header and Echo request/reply. More...

#include <inet.h>

Public Member Functions

uint8_t * dataStart ()
 Points to the beginning of the ICMP echo data. More...
 

Public Attributes

uint8_t type
 ICMP type. More...
 
uint8_t code
 ICMP subtype. More...
 
uint16_t checksum
 Error checking data. More...
 
union {
   struct {
      uint16_t   identifier
 used to identify this echo request More...
 
      uint16_t   sequenceNumber
 used to identify this echo request More...
 
   } 
 
   uint32_t   timestamp
 convenient merge of both identifier and sequence number to use as storage for millis() More...
 
}; 
 

Detailed Description

ICMP Header and Echo request/reply.

Definition at line 431 of file inet.h.

Member Function Documentation

uint8_t* ICMPHeader::dataStart ( )
inline

Points to the beginning of the ICMP echo data.

Returns

Definition at line 450 of file inet.h.

Member Data Documentation

union { ... }
uint16_t ICMPHeader::checksum

Error checking data.

Calculated from the ICMP header and data, with value 0 substituted for this field. The Internet Checksum is used, specified in RFC 1071

Definition at line 435 of file inet.h.

uint8_t ICMPHeader::code

ICMP subtype.

Definition at line 434 of file inet.h.

uint16_t ICMPHeader::identifier

used to identify this echo request

Definition at line 440 of file inet.h.

uint16_t ICMPHeader::sequenceNumber

used to identify this echo request

Definition at line 441 of file inet.h.

uint32_t ICMPHeader::timestamp

convenient merge of both identifier and sequence number to use as storage for millis()

Definition at line 443 of file inet.h.

uint8_t ICMPHeader::type

ICMP type.

Definition at line 433 of file inet.h.


The documentation for this struct was generated from the following file: