3 * LTE RLC stream statistics
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __TAP_RLC_GRAPH_H__
13 #define __TAP_RLC_GRAPH_H__
15 #include <epan/epan.h>
16 #include <epan/packet.h>
18 #include <epan/dissectors/packet-rlc-lte.h>
19 #include <epan/dissectors/packet-rlc-3gpp-common.h>
23 #endif /* __cplusplus */
26 struct rlc_segment
*next
;
27 uint32_t num
; /* framenum */
33 uint16_t isResegmented
;
36 uint32_t NACKs
[MAX_NACKs
];
45 uint16_t sequenceNumberLength
;
48 /* A collection of channels that may be found in one frame. Used when working out
49 which channel(s) are present in a frame. */
50 typedef struct _th_t
{
52 #define MAX_SUPPORTED_CHANNELS 8
53 rlc_3gpp_tap_info
*rlchdrs
[MAX_SUPPORTED_CHANNELS
];
57 /* List of segments to show */
58 struct rlc_segment
*segments
;
59 struct rlc_segment
*last_segment
;
61 /* These are filled in with the channel/direction this graph is showing */
72 bool rlc_graph_segment_list_get(capture_file
*cf
, struct rlc_graph
*tg
, bool stream_known
,
74 void rlc_graph_segment_list_free(struct rlc_graph
* );
78 bool compare_rlc_headers(uint8_t rat1
, uint8_t rat2
,
79 uint16_t ueid1
, uint16_t channelType1
, uint16_t channelId1
, uint8_t rlcMode1
, uint8_t direction1
,
80 uint16_t ueid2
, uint16_t channelType2
, uint16_t channelId2
, uint8_t rlcMode2
, uint8_t direction2
,
82 rlc_3gpp_tap_info
*select_rlc_lte_session(capture_file
*cf
, struct rlc_segment
*hdrs
,
88 #endif /* __cplusplus */