Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Typedefs
firewall_rules_dialog.h File Reference
#include "epan/address.h"
#include <wireshark_dialog.h>

Go to the source code of this file.

Classes

class  FirewallRulesDialog
 A dialog for generating and displaying firewall rules based on packet data. More...
 

Typedefs

typedef 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.
 

Detailed Description

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Typedef Documentation

◆ syntax_func

typedef 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.

Parameters
rtxtThe string buffer to append the generated rule text to.
addrThe IP or MAC address string.
portThe port number.
ptypeThe type of the port (e.g., TCP or UDP).
inboundTrue if the rule is for inbound traffic, false for outbound.
denyTrue if the rule is to deny traffic, false to allow.