IPPOLib
 All Classes Files Functions Variables Typedefs Macros
Functions
checksum.h File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
Include dependency graph for checksum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

u_short in_chksum (u_short *addr, int len)
uint16_t udp_sum_calc (uint16_t len_udp, uint32_t src_addr, uint16_t src_port, uint32_t dest_addr, uint16_t dest_port, const void *buff)
uint16_t udp_sum_calc2 (uint16_t len_udp, uint16_t src_addr[], uint16_t dest_addr[], bool padding, uint16_t buff[])
unsigned short in_chksum_udp (unsigned short *h, unsigned short *d, int dlen)
unsigned short in_chksum_tcp (unsigned short *h, unsigned short *d, int dlen)
unsigned short cksum (unsigned short *addr, int len)

Function Documentation

unsigned short cksum ( unsigned short *  addr,
int  len 
)

Definition at line 347 of file checksum.cpp.

Here is the caller graph for this function:

u_short in_chksum ( u_short *  addr,
int  len 
)

Definition at line 169 of file checksum.cpp.

unsigned short in_chksum_tcp ( unsigned short *  h,
unsigned short *  d,
int  dlen 
)

Definition at line 265 of file checksum.cpp.

Here is the call graph for this function:

unsigned short in_chksum_udp ( unsigned short *  h,
unsigned short *  d,
int  dlen 
)

Definition at line 191 of file checksum.cpp.

Here is the call graph for this function:

uint16_t udp_sum_calc ( uint16_t  len_udp,
uint32_t  src_addr,
uint16_t  src_port,
uint32_t  dest_addr,
uint16_t  dest_port,
const void *  buff 
)

Definition at line 34 of file checksum.cpp.

uint16_t udp_sum_calc2 ( uint16_t  len_udp,
uint16_t  src_addr[],
uint16_t  dest_addr[],
bool  padding,
uint16_t  buff[] 
)

Definition at line 115 of file checksum.cpp.