Main Page | Class List | File List | Class Members | File Members

icmp.cpp File Reference

#include "icmp.h"

Include dependency graph for icmp.cpp:

Go to the source code of this file.

Functions

void FillICMPData (char *pData, int size)
USHORT IPChecksum (USHORT *pBuffer, int nSize)
void EncodePacket (char *pPacket, int iDataSize, USHORT uSequence)
bool DecodePacket (char *pPacket, int iSize, USHORT &uSequence, LONGLONG &llTick)

Variables

const char * ICMPDATATEMPLATE = "abcdefghijklmnopqrstuvw"


Function Documentation

bool DecodePacket char *  pPacket,
int  iSize,
USHORT &  uSequence,
LONGLONG &  llTick
 

Definition at line 57 of file icmp.cpp.

References tagICMP_HEADER::cksum, tagICMP_HEADER::code, tagIP_HEADER::h_len, ICMP_DESTINATION_UNREACHABLE, ICMP_ECHO_REPLY, ICMP_TIME_EXCEEDED, tagICMP_HEADER::id, IPChecksum(), and tagICMP_HEADER::seq.

Referenced by main().

Here is the call graph for this function:

void EncodePacket char *  pPacket,
int  iDataSize,
USHORT  uSequence
 

Definition at line 40 of file icmp.cpp.

References tagICMP_HEADER::cksum, tagICMP_HEADER::code, FillICMPData(), ICMP_ECHO_REQUEST, tagICMP_HEADER::id, IPChecksum(), tagICMP_HEADER::seq, and tagICMP_HEADER::type.

Referenced by main().

Here is the call graph for this function:

void FillICMPData char *  pData,
int  size
 

Definition at line 7 of file icmp.cpp.

References ICMPDATATEMPLATE.

Referenced by EncodePacket().

USHORT IPChecksum USHORT *  pBuffer,
int  nSize
 

Definition at line 22 of file icmp.cpp.

Referenced by DecodePacket(), and EncodePacket().


Variable Documentation

const char* ICMPDATATEMPLATE = "abcdefghijklmnopqrstuvw"
 

Definition at line 5 of file icmp.cpp.

Referenced by FillICMPData().


Generated on Sun Jun 26 13:43:51 2005 for pingem by  doxygen 1.4.3