Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
firewall_rules.h
Go to the documentation of this file.
1
12#ifndef __UI_FIREWALL_RULES_H__
13#define __UI_FIREWALL_RULES_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
34
39size_t firewall_product_count(void);
40
46const char *firewall_product_name(size_t product_idx);
47
53const char *firewall_product_rule_hint(size_t product_idx);
54
59const char *firewall_product_comment_prefix(size_t product_idx);
60
61/* Syntax function prototypes */
62typedef void (*syntax_func)(GString *rtxt, char *addr, uint32_t port, port_type ptype, bool inbound, bool deny);
63
68syntax_func firewall_product_mac_func(size_t product_idx);
69
74syntax_func firewall_product_ipv4_func(size_t product_idx);
75
80syntax_func firewall_product_port_func(size_t product_idx);
81
86syntax_func firewall_product_ipv4_port_func(size_t product_idx);
87
93bool firewall_product_does_inbound(size_t product_idx);
94
95#ifdef __cplusplus
96}
97#endif /* __cplusplus */
98
99#endif /* __UI_FIREWALL_RULES_H__ */
port_type
Transport-layer port number types recognized by Wireshark.
Definition address.h:425
const char * firewall_product_rule_hint(size_t product_idx)
Definition firewall_rules.c:103
syntax_func firewall_product_ipv4_func(size_t product_idx)
Definition firewall_rules.c:122
size_t firewall_product_count(void)
Definition firewall_rules.c:92
const char * firewall_product_name(size_t product_idx)
Definition firewall_rules.c:97
syntax_func firewall_product_port_func(size_t product_idx)
Definition firewall_rules.c:129
syntax_func firewall_product_mac_func(size_t product_idx)
Definition firewall_rules.c:115
syntax_func firewall_product_ipv4_port_func(size_t product_idx)
Definition firewall_rules.c:136
rule_type_e
Classifies the address/port criterion used by a firewall rule entry.
Definition firewall_rules.h:22
@ RT_IPv4_DST
Definition firewall_rules.h:27
@ NUM_RULE_TYPES
Definition firewall_rules.h:32
@ RT_IPv4_PORT_SRC
Definition firewall_rules.h:30
@ RT_PORT_SRC
Definition firewall_rules.h:28
@ RT_IPv4_PORT_DST
Definition firewall_rules.h:31
@ RT_MAC_SRC
Definition firewall_rules.h:24
@ RT_PORT_DST
Definition firewall_rules.h:29
@ RT_IPv4_SRC
Definition firewall_rules.h:26
@ RT_MAC_DST
Definition firewall_rules.h:25
@ RT_NONE
Definition firewall_rules.h:23
bool firewall_product_does_inbound(size_t product_idx)
Definition firewall_rules.c:142
const char * firewall_product_comment_prefix(size_t product_idx)
Definition firewall_rules.c:109