| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Functions
crc6.h File Reference
`#include <wireshark.h>`

Go to the source code of this file.

## Functions
WS_DLL_PUBLIC uint16_t | crc6_0X6F (uint16_t crc6, const uint8_t *data_blk_ptr, int data_blk_size)
| Compute CRC-6 using polynomial 0x6F over a data block.

## Detailed Description

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

## Function Documentation

## ◆ crc6_0X6F()

WS_DLL_PUBLIC uint16_t crc6_0X6F | ( | uint16_t | crc,
|  | const uint8_t * | data,
|  | int | data_len
| ) |  |

Compute CRC-6 using polynomial 0x6F over a data block.

Parameters

  crc6 | Initial CRC-6 remainder.
  data_blk_ptr | Pointer to the input data block.
  data_blk_size | Length of the data block in bytes.

Returns
  Updated CRC-6 remainder after processing the block.

CRC6 is used by 3GPP (TS 25.415, TS 25.446) for header CRCs Poly: D^6 + D^5 + D^3 + D^2 + D^1 + 1

TS 25.415 docs: https://www.etsi.org/deliver/etsi_ts/125400_125499/125415/04.06.00_60/ts_125415v040600p.pdf TS 25.446 docs: https://www.etsi.org/deliver/etsi_ts/125400_125499/125446/10.01.00_60/ts_125446v100100p.pdf