10#ifndef FIREWALL_RULES_DIALOG_H
11#define FIREWALL_RULES_DIALOG_H
32typedef void (*
syntax_func)(GString *rtxt,
char *addr, uint32_t port,
port_type ptype,
bool inbound,
bool deny);
59 void on_productComboBox_currentIndexChanged(
int new_idx);
64 void on_inboundCheckBox_toggled(
bool);
69 void on_denyCheckBox_toggled(
bool);
74 void on_buttonBox_helpRequested();
80 void on_buttonBox_clicked(QAbstractButton *button);
84 Ui::FirewallRulesDialog *ui;
119 void updateWidgets();
128 void addRule(QString description,
syntax_func rule_func,
address *addr, uint32_t port);
port_type
Transport-layer port number types recognized by Wireshark.
Definition address.h:425
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A dialog for generating and displaying firewall rules based on packet data.
Definition firewall_rules_dialog.h:38
~FirewallRulesDialog()
Destroys the FirewallRulesDialog.
Definition firewall_rules_dialog.cpp:74
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
void(* syntax_func)(GString *rtxt, char *addr, uint32_t port, port_type ptype, bool inbound, bool deny)
Pointer to a function used to generate firewall rule syntax.
Definition firewall_rules_dialog.h:32
Holds a network or link-layer address of any supported type.
Definition address.h:62