| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
firewall_rules_dialog.h
Go to the documentation of this file.
1
10#ifndef FIREWALL_RULES_DIALOG_H
11#define FIREWALL_RULES_DIALOG_H
12
13#include "epan/address.h"
14
15#include <wireshark_dialog.h>
16
17 namespace Ui {
18 class FirewallRulesDialog;
19}
20
21 class QAbstractButton;
22
23 typedef void (*syntax_func)(GString *rtxt, char *addr, uint32_t port, port_type ptype, bool inbound, bool deny);
24
25 class FirewallRulesDialog : public WiresharkDialog
26{
27 Q_OBJECT
28
29 public:
30 explicit FirewallRulesDialog(QWidget &parent, CaptureFile &cf);
31 ~FirewallRulesDialog();
32
33 private slots:
34 void on_productComboBox_currentIndexChanged(int new_idx);
35 void on_inboundCheckBox_toggled(bool);
36 void on_denyCheckBox_toggled(bool);
37 void on_buttonBox_helpRequested();
38
39 void on_buttonBox_clicked(QAbstractButton *button);
40
41 private:
42 Ui::FirewallRulesDialog *ui;
43
44 QString file_name_;
45 int packet_num_;
46
47 size_t prod_;
48 address dl_src_;
49 address dl_dst_;
50 address net_src_;
51 address net_dst_;
52 port_type ptype_;
53 uint32_t src_port_;
54 uint32_t dst_port_;
55
56 void updateWidgets();
57 void addRule(QString description, syntax_func rule_func, address *addr, uint32_t port);
58};
59
60#endif // FIREWALL_RULES_DIALOG_H
address.h
CaptureFile
Definition capture_file.h:21
FirewallRulesDialog
Definition firewall_rules_dialog.h:26
WiresharkDialog
Definition wireshark_dialog.h:35
_address
Definition address.h:58
wireshark_dialog.h