MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / plugins / wimax / crc.h
blob68d91328fa7c2cdb14c1a0aae9ecf0b9f7dc7470
1 /* crc.h
2 * header file of crc.c
4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: Mike Harvey <michael.harvey@intel.com>
8 * $Id$
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1999 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 #ifndef CRC_H
30 #define CRC_H
32 #include <glib.h>
34 /* use lookup tables to compute CRC values */
35 #ifdef STATIC_DATA
36 extern guint8 crc8_table[];
37 extern guint32 crc32_table[];
38 #else
39 void wimax_mac_gen_crc32_table(void);
40 void wimax_mac_gen_crc8_table(void);
41 #endif
43 guint32 wimax_mac_calc_crc32(const guint8 *data, guint data_len);
44 guint16 wimax_mac_calc_crc16(const guint8 *data, guint data_len);
45 guint8 wimax_mac_calc_crc8(const guint8 *data, guint data_len);
47 #endif /* CRC_H */