Wireshark  4.3.0
The Wireshark network protocol analyzer
tap-rlc-graph.h
Go to the documentation of this file.
1 
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 <cfile.h>
18 #include <epan/dissectors/packet-rlc-lte.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23 
24 struct rlc_segment {
25  struct rlc_segment *next;
26  guint32 num; /* framenum */
27  time_t rel_secs;
28  guint32 rel_usecs;
29 
30  gboolean isControlPDU;
31  guint16 SN;
32  guint16 isResegmented;
33  guint16 ACKNo;
34  #define MAX_NACKs 128
35  guint16 noOfNACKs;
36  guint16 NACKs[MAX_NACKs];
37  guint16 pduLength;
38 
39  guint16 ueid;
40  guint16 channelType;
41  guint16 channelId;
42  guint8 rlcMode;
43  guint8 direction;
44 };
45 
46 /* A collection of channels that may be found in one frame. Used when working out
47  which channel(s) are present in a frame. */
48 typedef struct _th_t {
49  int num_hdrs;
50  #define MAX_SUPPORTED_CHANNELS 8
51  rlc_lte_tap_info *rlchdrs[MAX_SUPPORTED_CHANNELS];
52 } th_t;
53 
54 struct rlc_graph {
55  /* List of segments to show */
56  struct rlc_segment *segments;
57  struct rlc_segment *last_segment;
58 
59  /* These are filled in with the channel/direction this graph is showing */
60  gboolean channelSet;
61  guint16 ueid;
62  guint16 channelType;
63  guint16 channelId;
64  guint8 rlcMode;
65  guint8 direction;
66 };
67 
68 gboolean rlc_graph_segment_list_get(capture_file *cf, struct rlc_graph *tg, gboolean stream_known,
69  char **err_string);
70 void rlc_graph_segment_list_free(struct rlc_graph * );
71 
72 
73 
74 gboolean compare_rlc_headers(guint16 ueid1, guint16 channelType1, guint16 channelId1, guint8 rlcMode1, guint8 direction1,
75  guint16 ueid2, guint16 channelType2, guint16 channelId2, guint8 rlcMode2, guint8 direction2,
76  gboolean isControlFrame);
77 rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, struct rlc_segment *hdrs,
78  gchar **err_msg);
79 
80 
81 #ifdef __cplusplus
82 }
83 #endif /* __cplusplus */
84 
85 
86 #endif
Definition: cfile.h:67
Definition: tap-rlc-graph.h:48
Definition: tap-rlc-graph.h:54
Definition: packet-rlc-lte.h:65
Definition: packet-rlc-lte.c:385