Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

checksum.h File Reference

#include <sys/types.h>

Go to the source code of this file.

Defines

#define CSE_IP   0x01
#define CSE_TCP   0x02
#define CSE_UDP   0x04
#define CSE_ICMP   0x08
#define CSE_IGMP   0x10

Functions

static unsigned short in_chksum_ip (unsigned short *w, int blen)
static unsigned short in_chksum_tcp (unsigned short *h, unsigned short *d, int dlen)
static unsigned short in_chksum_udp (unsigned short *h, unsigned short *d, int dlen)
static unsigned short in_chksum_icmp (unsigned short *w, int blen)


Define Documentation

#define CSE_ICMP   0x08
 

Definition at line 44 of file checksum.h.

Referenced by DecodeICMP().

#define CSE_IGMP   0x10
 

Definition at line 45 of file checksum.h.

#define CSE_IP   0x01
 

Definition at line 41 of file checksum.h.

Referenced by DecodeIP(), Frag2Defrag(), Frag3Defrag(), and NotForStream4().

#define CSE_TCP   0x02
 

Definition at line 42 of file checksum.h.

Referenced by DecodeTCP(), and NotForStream4().

#define CSE_UDP   0x04
 

Definition at line 43 of file checksum.h.

Referenced by DecodeUDP().


Function Documentation

static unsigned short in_chksum_icmp unsigned short *  w,
int  blen
[inline, static]
 

Definition at line 261 of file checksum.h.

Referenced by DecodeICMP(), and PayloadReplace().

static unsigned short in_chksum_ip unsigned short *  w,
int  blen
[inline, static]
 

Definition at line 54 of file checksum.h.

Referenced by DecodeIP(), Frag3Rebuild(), MakePortscanPkt(), PayloadReplace(), and RebuildFrag().

static unsigned short in_chksum_tcp unsigned short *  h,
unsigned short *  d,
int  dlen
[inline, static]
 

Definition at line 96 of file checksum.h.

Referenced by DecodeTCP(), and PayloadReplace().

static unsigned short in_chksum_udp unsigned short *  h,
unsigned short *  d,
int  dlen
[inline, static]
 

Definition at line 186 of file checksum.h.

Referenced by DecodeUDP(), and PayloadReplace().


Generated on Sun May 14 14:51:22 2006 by  doxygen 1.4.2