Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
tap-rlc-graph.h
Go to the documentation of this file.
1
11
12#ifndef __TAP_RLC_GRAPH_H__
13#define __TAP_RLC_GRAPH_H__
14
15#include <epan/epan.h>
16#include <epan/packet.h>
17#include <epan/cfile.h>
18#include <epan/dissectors/packet-rlc-lte.h>
19#include <epan/dissectors/packet-rlc-3gpp-common.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif /* __cplusplus */
24
28struct rlc_segment {
29 struct rlc_segment *next;
30 uint32_t num;
32
34 uint32_t SN;
35 uint16_t isResegmented;
36 uint32_t ACKNo;
37 uint16_t noOfNACKs;
38 uint32_t NACKs[MAX_NACKs];
39 uint16_t pduLength;
40
41 uint8_t rat;
42 uint16_t ueid;
43 uint16_t channelType;
44 uint16_t channelId;
45 uint8_t rlcMode;
46 uint8_t direction;
48};
49
53typedef struct _th_t {
55 #define MAX_SUPPORTED_CHANNELS 8
56 rlc_3gpp_tap_info *rlchdrs[MAX_SUPPORTED_CHANNELS];
58
62struct rlc_graph {
65
67
68 uint8_t rat;
69 uint16_t ueid;
70 uint16_t channelType;
71 uint16_t channelId;
72 uint8_t rlcMode;
73 uint8_t direction;
74};
75
85bool rlc_graph_segment_list_get(capture_file *cf, struct rlc_graph *tg, bool stream_known,
86 char **err_string);
87
93
115bool compare_rlc_headers(uint8_t rat1, uint8_t rat2,
116 uint16_t ueid1, uint16_t channelType1, uint16_t channelId1, uint8_t rlcMode1, uint8_t direction1,
117 uint16_t ueid2, uint16_t channelType2, uint16_t channelId2, uint8_t rlcMode2, uint8_t direction2,
118 bool isControlFrame);
119
131 char **err_msg);
132
133
134#ifdef __cplusplus
135}
136#endif /* __cplusplus */
137
138
139#endif
struct _capture_file capture_file
Represents a capture file and its associated metadata.
Accumulates all RLC channel headers found within a single captured frame.
Definition tap-rlc-graph.h:53
rlc_3gpp_tap_info * rlchdrs[8]
Definition tap-rlc-graph.h:56
int num_hdrs
Definition tap-rlc-graph.h:54
Definition nstime.h:26
Definition packet-rlc-3gpp-common.h:18
Holds all state required to render an RLC sequence-number graph for one channel.
Definition tap-rlc-graph.h:62
uint8_t rlcMode
Definition tap-rlc-graph.h:72
bool channelSet
Definition tap-rlc-graph.h:66
struct rlc_segment * last_segment
Definition tap-rlc-graph.h:64
uint16_t ueid
Definition tap-rlc-graph.h:69
uint16_t channelType
Definition tap-rlc-graph.h:70
struct rlc_segment * segments
Definition tap-rlc-graph.h:63
uint16_t channelId
Definition tap-rlc-graph.h:71
uint8_t rat
Definition tap-rlc-graph.h:68
uint8_t direction
Definition tap-rlc-graph.h:73
Represents a single RLC PDU or control segment captured from the air interface.
Definition packet-rlc-lte.c:381
uint32_t ACKNo
Definition tap-rlc-graph.h:36
uint32_t num
Definition tap-rlc-graph.h:30
uint16_t pduLength
Definition tap-rlc-graph.h:39
uint16_t channelType
Definition tap-rlc-graph.h:43
uint8_t rlcMode
Definition tap-rlc-graph.h:45
uint8_t direction
Definition tap-rlc-graph.h:46
uint16_t sequenceNumberLength
Definition tap-rlc-graph.h:47
uint16_t noOfNACKs
Definition tap-rlc-graph.h:37
uint16_t channelId
Definition tap-rlc-graph.h:44
bool isControlPDU
Definition tap-rlc-graph.h:33
nstime_t rel_ts
Definition tap-rlc-graph.h:31
uint8_t rat
Definition tap-rlc-graph.h:41
uint32_t NACKs[MAX_NACKs]
Definition tap-rlc-graph.h:38
uint16_t ueid
Definition tap-rlc-graph.h:42
struct rlc_segment * next
Definition tap-rlc-graph.h:29
uint16_t isResegmented
Definition tap-rlc-graph.h:35
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.
Definition tap-rlc-graph.c:25
void rlc_graph_segment_list_free(struct rlc_graph *g)
Frees the list of RLC segments in the given RLC graph.
Definition tap-rlc-graph.c:310
struct _th_t th_t
Accumulates all RLC channel headers found within a single captured frame.
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.
Definition tap-rlc-graph.c:254
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.
Definition tap-rlc-graph.c:100