crc-32.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define UINT32   unsigned long

Functions

static unsigned long doFCS (const void *ss, int len)

Variables

const unsigned long crc32_table [256]


Define Documentation

#define UINT32   unsigned long

Definition at line 8 of file crc-32.h.


Function Documentation

static unsigned long doFCS ( const void *  ss,
int  len 
) [inline, static]

Definition at line 14 of file crc-32.h.

References crc32_table.

00015 {
00016   const unsigned char *s = ss;
00017   UINT32 val = 0xffffffff;
00018 
00019   while (--len >= 0)
00020     val = crc32_table[(val ^ *s++) & 0xff] ^ (val >> 8);
00021   return val;
00022 }


Variable Documentation

const unsigned long crc32_table[256]

Definition at line 46 of file crc-32.c.

Referenced by doFCS().


Generated on Fri Jul 25 17:10:49 2008 for WifiScanner by  doxygen 1.5.5