NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
stru_NetSim_ICMP_ECHO Struct Reference

#include <ICMP.h>

Data Fields

char Type
 
char Code
 
unsigned short int Checksum
 
unsigned short int Identifier
 If code = 0, an identifier to aid in matching echos and replies,may be zero.
 
unsigned short int SequenceNumber
 If code = 0, a sequence number to aid in matching echos and replies, may be zero.
 
void * Data
 

Detailed Description

RFC 792 page 13
Echo or Echo Reply Message
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identifier | Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data ...
+-+-+-+-+-
unsigned short int Identifier
If code = 0, an identifier to aid in matching echos and replies,may be zero.
Definition ICMP.h:122
unsigned short int Checksum
Definition ICMP.h:115

Definition at line 106 of file ICMP.h.

Field Documentation

◆ Checksum

unsigned short int stru_NetSim_ICMP_ECHO::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 total length is odd, the received data is padded with one octet of zeros for computing the checksum. This checksum may be replaced in the future.

Definition at line 115 of file ICMP.h.

◆ Code

char stru_NetSim_ICMP_ECHO::Code

Definition at line 114 of file ICMP.h.

◆ Data

void* stru_NetSim_ICMP_ECHO::Data

Definition at line 124 of file ICMP.h.

◆ Identifier

unsigned short int stru_NetSim_ICMP_ECHO::Identifier

If code = 0, an identifier to aid in matching echos and replies,may be zero.

Definition at line 122 of file ICMP.h.

◆ SequenceNumber

unsigned short int stru_NetSim_ICMP_ECHO::SequenceNumber

If code = 0, a sequence number to aid in matching echos and replies, may be zero.

Definition at line 123 of file ICMP.h.

◆ Type

char stru_NetSim_ICMP_ECHO::Type
8 for echo message;
0 for echo reply message.

Definition at line 108 of file ICMP.h.


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