diff options
author | Philip Rosenberg-Watt <p.rosenberg-watt@cablelabs.com> | 2014-04-17 14:04:36 -0600 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-04-17 20:38:44 +0000 |
commit | 53ae83750e8d6409861feb9e5d3314bba310c806 (patch) | |
tree | a1b8c219e031b8e0daa9cf4fc6e90e4223b97d0f /epan/crc8-tvb.h | |
parent | c531099875dfc1abc7dff22424f30b4ef0c25b1f (diff) | |
download | wireshark-53ae83750e8d6409861feb9e5d3314bba310c806.tar.gz |
Add CRC-8 calculator for EPON
See IEEE Standard 802.3-2012 Section 5, Clause 65
Change-Id: I83d8adfd5c4fd1f263175ac726854d51419b34e0
Reviewed-on: https://code.wireshark.org/review/1187
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/crc8-tvb.h')
-rw-r--r-- | epan/crc8-tvb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/crc8-tvb.h b/epan/crc8-tvb.h index 667a1b4354..1d0a632b99 100644 --- a/epan/crc8-tvb.h +++ b/epan/crc8-tvb.h @@ -8,7 +8,9 @@ * Polynom: (x^8 + x^2 + x^1 + 1) * * 2011 Hans-Christoph Schemmel <hans-christoph.schemmel[AT]cinterion.com> - * + * 2014 Philip Rosenberg-Watt <p.rosenberg-watt[at]cablelabs.com> + * + Added CRC-8 for IEEE 802.3 EPON, with shift register initialized to 0x00 + * See IEEE Std 802.3-2012 Section 5, Clause 65.1.3.2.3. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> @@ -44,5 +46,6 @@ #define __CRC8_TVB_H__ extern gboolean check_fcs(tvbuff_t *p, guint8 len, guint8 offset, guint8 received_fcs); +extern guint8 get_crc8_ieee8023_epon(tvbuff_t *p, guint8 len, guint8 offset); #endif /* __CRC8_TVB_H__ */ |