Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Enumerations | Functions
dvb_chartbl.h File Reference
#include "ws_symbol_export.h"
#include <epan/proto.h>
#include <epan/to_str.h>
#include <epan/tvbuff.h>

Go to the source code of this file.

Enumerations

enum  dvb_encoding_e {
  DVB_ENCODING_INVALID = -3 , DVB_ENCODING_RESERVED = -2 , DVB_ENCODING_UNKNOWN = -1 , DVB_ENCODING_LATIN = 0 ,
  DVB_ENCODING_ISO_8859_1 , DVB_ENCODING_ISO_8859_2 , DVB_ENCODING_ISO_8859_3 , DVB_ENCODING_ISO_8859_4 ,
  DVB_ENCODING_ISO_8859_5 , DVB_ENCODING_ISO_8859_6 , DVB_ENCODING_ISO_8859_7 , DVB_ENCODING_ISO_8859_8 ,
  DVB_ENCODING_ISO_8859_9 , DVB_ENCODING_ISO_8859_10 , DVB_ENCODING_ISO_8859_11 , DVB_ENCODING_ISO_8859_13 ,
  DVB_ENCODING_ISO_8859_14 , DVB_ENCODING_ISO_8859_15 , DVB_ENCODING_ISO_10646_BMP , DVB_ENCODING_KSX_1001 ,
  DVB_ENCODING_GB_2312 , DVB_ENCODING_ISO_10646_BIG5 , DVB_ENCODING_ISO_10646_UTF8_BMP
}
 

Functions

WS_DLL_PUBLIC unsigned dvb_analyze_string_charset (tvbuff_t *tvb, int offset, int length, dvb_encoding_e *encoding)
 Analyzes the character set of a DVB string.
 
WS_DLL_PUBLIC unsigned dvb_enc_to_item_enc (dvb_encoding_e encoding)
 Convert DVB encoding to item encoding.
 
WS_DLL_PUBLIC void dvb_add_chartbl (proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int length, dvb_encoding_e encoding)
 Adds a character table to the protocol tree.
 

Detailed Description

Routines for handling DVB-SI character tables (as defined in EN 300 468)

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

◆ dvb_add_chartbl()

WS_DLL_PUBLIC void dvb_add_chartbl ( proto_tree tree,
int  hf,
tvbuff_t tvb,
int  offset,
int  length,
dvb_encoding_e  encoding 
)

Adds a character table to the protocol tree.

This function adds a character table to the protocol tree based on the provided parameters.

Parameters
treeThe protocol tree to which the character table will be added.
hfThe field ID for the character table.
tvbThe TV buffer containing the data.
offsetThe offset within the TV buffer where the data starts.
lengthThe length of the data in the TV buffer.
encodingThe encoding type of the character table.

◆ dvb_analyze_string_charset()

WS_DLL_PUBLIC unsigned dvb_analyze_string_charset ( tvbuff_t tvb,
int  offset,
int  length,
dvb_encoding_e *  encoding 
)

Analyzes the character set of a DVB string.

Determines the encoding of a DVB string based on its first byte and length.

Parameters
tvbThe TVB buffer containing the DVB data.
offsetThe starting offset within the TVB buffer.
lengthThe length of the DVB string to analyze.
encodingPointer to store the detected encoding.
Returns
Number of bytes processed or 1 if invalid.

◆ dvb_enc_to_item_enc()

WS_DLL_PUBLIC unsigned dvb_enc_to_item_enc ( dvb_encoding_e  encoding)

Convert DVB encoding to item encoding.

Parameters
encodingThe DVB encoding to convert.
Returns
The corresponding item encoding.