Wireshark 4.5.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
17namespace Ui {
19}
20
21class QAbstractButton;
22
23typedef void (*syntax_func)(GString *rtxt, char *addr, uint32_t port, port_type ptype, bool inbound, bool deny);
24
26{
27 Q_OBJECT
28
29public:
30 explicit FirewallRulesDialog(QWidget &parent, CaptureFile &cf);
32
33private 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
41private:
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
Definition capture_file.h:21
Definition firewall_rules_dialog.h:26
Definition wireshark_dialog.h:35
Definition address.h:56