Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
crc8-tvb.h
1 /* crc8.h
2  *
3  * Checks the checksum (FCS) of the 3G TS 27.010 Multiplexing protocol.
4  * The algorithm to check the FCS is described in "3G TS 27.010 V2.0.0 (1999-06)"
5  * See: www.3gpp.org/ftp/tsg_t/TSG_T/TSGT_04/docs/PDFs/TP-99119.pdf
6  * or: http://www.3gpp.org/ftp/Specs/html-info/27010.htm
7  *
8  * Polynom: (x^8 + x^2 + x^1 + 1)
9  *
10  * 2011 Hans-Christoph Schemmel <hans-christoph.schemmel[AT]cinterion.com>
11  * 2014 Philip Rosenberg-Watt <p.rosenberg-watt[at]cablelabs.com>
12  * + Added CRC-8 for IEEE 802.3 EPON, with shift register initialized to 0x00
13  * See IEEE Std 802.3-2012 Section 5, Clause 65.1.3.2.3.
14  *
15  * Wireshark - Network traffic analyzer
16  * By Gerald Combs <gerald@wireshark.org>
17  * Copyright 1998 Gerald Combs
18  *
19  * SPDX-License-Identifier: GPL-2.0-or-later
20  */
21 
22 
33 #ifndef __CRC8_TVB_H__
34 #define __CRC8_TVB_H__
35 
36 extern gboolean check_fcs(tvbuff_t *p, guint8 len, guint8 offset, guint8 received_fcs);
37 extern guint8 get_crc8_ieee8023_epon(tvbuff_t *p, guint8 len, guint8 offset);
38 
39 #endif /* __CRC8_TVB_H__ */
Definition: tvbuff-int.h:35