Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Macros | Functions
crc7.h File Reference
#include <wireshark.h>

Go to the source code of this file.

Macros

#define CRC_ALGO_TABLE_DRIVEN   1
 

Functions

WS_DLL_PUBLIC uint8_t crc7update (uint8_t crc, const unsigned char *data, int data_len)
 

Detailed Description

Functions and types for CRC checks.

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Generated on Wed Jul 11 17:24:57 2012, by pycrc v0.7.10, http://www.tty1.net/pycrc/ using the configuration: Width = 7 Poly = 0x45 XorIn = 0x00 ReflectIn = False XorOut = 0x00 ReflectOut = False Algorithm = table-driven

Macro Definition Documentation

◆ CRC_ALGO_TABLE_DRIVEN

#define CRC_ALGO_TABLE_DRIVEN   1

The definition of the used algorithm.

Function Documentation

◆ crc7update()

WS_DLL_PUBLIC uint8_t crc7update ( uint8_t  crc,
const unsigned char *  data,
int  data_len 
)

Update the crc value with new data.

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
data_lenNumber of bytes in the data buffer.
Returns
The updated crc value.