4 * Copyright (c) 2007 by Intel Corporation.
6 * Author: Mike Harvey <michael.harvey@intel.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1999 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
21 /* use lookup tables to compute CRC values */
23 extern uint8_t crc8_table
[];
24 extern uint32_t crc32_table
[];
26 void wimax_mac_gen_crc32_table(void);
27 void wimax_mac_gen_crc8_table(void);
30 uint32_t wimax_mac_calc_crc32(const uint8_t *data
, unsigned data_len
);
31 uint16_t wimax_mac_calc_crc16(const uint8_t *data
, unsigned data_len
);
32 uint8_t wimax_mac_calc_crc8(const uint8_t *data
, unsigned data_len
);