Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
tap-rlc-graph.h File Reference
#include <epan/epan.h>
#include <epan/packet.h>
#include <epan/cfile.h>
#include <epan/dissectors/packet-rlc-lte.h>
#include <epan/dissectors/packet-rlc-3gpp-common.h>

Go to the source code of this file.

Classes

struct  rlc_segment
 
struct  _th_t
 
struct  rlc_graph
 

Macros

#define MAX_SUPPORTED_CHANNELS   8
 

Typedefs

typedef struct _th_t th_t
 

Functions

bool rlc_graph_segment_list_get (capture_file *cf, struct rlc_graph *tg, bool stream_known, char **err_string)
 Retrieves a list of RLC segments from a capture file.
 
void rlc_graph_segment_list_free (struct rlc_graph *g)
 Frees the list of RLC segments in the given RLC graph.
 
bool compare_rlc_headers (uint8_t rat1, uint8_t rat2, uint16_t ueid1, uint16_t channelType1, uint16_t channelId1, uint8_t rlcMode1, uint8_t direction1, uint16_t ueid2, uint16_t channelType2, uint16_t channelId2, uint8_t rlcMode2, uint8_t direction2, bool isControlFrame)
 Compares two RLC headers for equality.
 
rlc_3gpp_tap_infoselect_rlc_lte_session (capture_file *cf, struct rlc_segment *hdrs, char **err_msg)
 Selects an RLC LTE session from a capture file.
 

Detailed Description

LTE RLC stream statistics

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

◆ compare_rlc_headers()

bool compare_rlc_headers ( uint8_t  rat1,
uint8_t  rat2,
uint16_t  ueid1,
uint16_t  channelType1,
uint16_t  channelId1,
uint8_t  rlcMode1,
uint8_t  direction1,
uint16_t  ueid2,
uint16_t  channelType2,
uint16_t  channelId2,
uint8_t  rlcMode2,
uint8_t  direction2,
bool  isControlFrame 
)

Compares two RLC headers for equality.

This function compares two RLC (Radio Link Control) headers based on their parameters. It checks if the headers are equal, considering both data and control frames.

Parameters
rat1Radio Access Technology of the first header.
rat2Radio Access Technology of the second header.
ueid1User Equipment ID of the first header.
channelType1Channel type of the first header.
channelId1Channel ID of the first header.
rlcMode1RLC mode of the first header.
direction1Direction of the first header (0 for uplink, 1 for downlink).
ueid2User Equipment ID of the second header.
channelType2Channel type of the second header.
channelId2Channel ID of the second header.
rlcMode2RLC mode of the second header.
direction2Direction of the second header (0 for uplink, 1 for downlink).
isControlFrameIndicates if the frame is a control frame.
Returns
true if the headers are equal, false otherwise.

◆ rlc_graph_segment_list_free()

void rlc_graph_segment_list_free ( struct rlc_graph g)

Frees the list of RLC segments in the given RLC graph.

Parameters
gPointer to the RLC graph structure whose segments are to be freed.

◆ rlc_graph_segment_list_get()

bool rlc_graph_segment_list_get ( capture_file cf,
struct rlc_graph tg,
bool  stream_known,
char **  err_string 
)

Retrieves a list of RLC segments from a capture file.

Parameters
cfPointer to the capture file.
tgPointer to the RLC graph structure.
stream_knownIndicates if the stream is already known.
err_stringPointer to an error string (if any).
Returns
true if successful, false otherwise.

◆ select_rlc_lte_session()

rlc_3gpp_tap_info * select_rlc_lte_session ( capture_file cf,
struct rlc_segment hdrs,
char **  err_msg 
)

Selects an RLC LTE session from a capture file.

This function selects an RLC LTE session based on the current frame in the capture file and filters for RLC-LTE or RLC-NR packets.

Parameters
cfThe capture file containing the data.
hdrsThe RLC segment headers.
err_msgA pointer to a string that will hold any error message if an error occurs.
Returns
An rlc_3gpp_tap_info structure representing the selected RLC LTE session, or NULL if no valid session is found.