Wireshark  4.3.0
The Wireshark network protocol analyzer
Functions
golay.h File Reference
#include "ws_symbol_export.h"

Go to the source code of this file.

Functions

WS_DLL_PUBLIC guint32 golay_encode (guint w)
 
WS_DLL_PUBLIC gint32 golay_errors (guint32 codeword)
 
WS_DLL_PUBLIC gint golay_decode (guint32 w)
 

Detailed Description

Provides routines for encoding and decoding the extended Golay (24,12,8) code.

This implementation will detect up to 4 errors in a codeword (without being able to correct them); it will correct up to 3 errors.

We use guint32s to hold the 24-bit codewords, with the data part in the bottom 12 bits and the parity in bits 12-23.

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