3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef SCTP_ASSOC_ANALYSE_DIALOG_H
11 #define SCTP_ASSOC_ANALYSE_DIALOG_H
17 #include <epan/dissectors/packet-sctp.h>
19 #include "sctp_all_assocs_dialog.h"
24 #include <QGridLayout>
25 #include <QMessageBox>
29 class SCTPAssocAnalyseDialog
;
32 struct _sctp_assoc_info
;
34 class SCTPAssocAnalyseDialog
: public QDialog
39 explicit SCTPAssocAnalyseDialog(QWidget
*parent
= 0, const _sctp_assoc_info
*assoc
= NULL
,
40 capture_file
*cf
= NULL
);
41 ~SCTPAssocAnalyseDialog();
43 void fillTabs(const _sctp_assoc_info
* selected_assoc
);
44 static const _sctp_assoc_info
* findAssocForPacket(capture_file
* cf
);
45 static const _sctp_assoc_info
* findAssoc(QWidget
*parent
, uint16_t assoc_id
);
48 void setCaptureFile(capture_file
*cf
) { cap_file_
= cf
; }
51 void on_GraphTSN_2_clicked();
52 void on_GraphTSN_1_clicked();
53 void on_chunkStatisticsButton_clicked();
54 void on_setFilterButton_clicked();
56 void on_GraphBytes_1_clicked();
57 void on_GraphBytes_2_clicked();
59 void on_GraphArwnd_1_clicked();
60 void on_GraphArwnd_2_clicked();
63 Ui::SCTPAssocAnalyseDialog
*ui
;
64 uint16_t selected_assoc_id
;
65 capture_file
*cap_file_
;
66 void openGraphDialog(int direction
);
67 void openGraphByteDialog(int direction
);
68 void openGraphArwndDialog(int direction
);
72 void filterPackets(QString new_filter
, bool force
);
75 #endif // SCTP_ASSOC_ANALYSE_DIALOG_H