2015-10-10 22:53:45 +00:00
|
|
|
/* tap-rlc-stream.h
|
|
|
|
* LTE RLC stream statistics
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later*/
|
2015-10-10 22:53:45 +00:00
|
|
|
|
|
|
|
#ifndef __TAP_RLC_GRAPH_H__
|
|
|
|
#define __TAP_RLC_GRAPH_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#include <epan/epan.h>
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <cfile.h>
|
|
|
|
#include <epan/dissectors/packet-rlc-lte.h>
|
|
|
|
|
|
|
|
struct rlc_segment {
|
|
|
|
struct rlc_segment *next;
|
2017-12-03 13:49:36 +00:00
|
|
|
guint32 num; /* framenum */
|
|
|
|
guint32 rel_secs;
|
|
|
|
guint32 rel_usecs;
|
2015-10-10 22:53:45 +00:00
|
|
|
|
|
|
|
gboolean isControlPDU;
|
|
|
|
guint16 SN;
|
|
|
|
guint16 isResegmented;
|
|
|
|
guint16 ACKNo;
|
|
|
|
#define MAX_NACKs 128
|
|
|
|
guint16 noOfNACKs;
|
|
|
|
guint16 NACKs[MAX_NACKs];
|
2015-10-20 14:07:10 +00:00
|
|
|
guint16 pduLength;
|
2015-10-10 22:53:45 +00:00
|
|
|
|
|
|
|
guint16 ueid;
|
|
|
|
guint16 channelType;
|
|
|
|
guint16 channelId;
|
|
|
|
guint8 rlcMode;
|
|
|
|
guint8 direction;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* A collection of channels that may be found in one frame. Used when working out
|
|
|
|
which channel(s) are present in a frame. */
|
|
|
|
typedef struct _th_t {
|
|
|
|
int num_hdrs;
|
|
|
|
#define MAX_SUPPORTED_CHANNELS 8
|
|
|
|
rlc_lte_tap_info *rlchdrs[MAX_SUPPORTED_CHANNELS];
|
|
|
|
} th_t;
|
|
|
|
|
|
|
|
struct rlc_graph {
|
|
|
|
/* List of segments to show */
|
|
|
|
struct rlc_segment *segments;
|
|
|
|
struct rlc_segment *last_segment;
|
|
|
|
|
|
|
|
/* These are filled in with the channel/direction this graph is showing */
|
|
|
|
gboolean channelSet;
|
|
|
|
guint16 ueid;
|
|
|
|
guint16 channelType;
|
|
|
|
guint16 channelId;
|
|
|
|
guint8 rlcMode;
|
|
|
|
guint8 direction;
|
|
|
|
|
|
|
|
/* Lists of elements to draw. N.B. GTK version only. */
|
|
|
|
struct element_list *elists;
|
|
|
|
};
|
|
|
|
|
|
|
|
gboolean rlc_graph_segment_list_get(capture_file *cf, struct rlc_graph *tg, gboolean stream_known,
|
2015-12-29 08:00:59 +00:00
|
|
|
char **err_string);
|
2015-10-10 22:53:45 +00:00
|
|
|
void rlc_graph_segment_list_free(struct rlc_graph * );
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-26 23:02:44 +00:00
|
|
|
gboolean compare_rlc_headers(guint16 ueid1, guint16 channelType1, guint16 channelId1, guint8 rlcMode1, guint8 direction1,
|
|
|
|
guint16 ueid2, guint16 channelType2, guint16 channelId2, guint8 rlcMode2, guint8 direction2,
|
|
|
|
gboolean isControlFrame);
|
2015-10-10 22:53:45 +00:00
|
|
|
rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, struct rlc_segment *hdrs,
|
2015-12-29 08:00:59 +00:00
|
|
|
gchar **err_msg);
|
2015-10-10 22:53:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|