| 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
19/* Rule types */
20typedef enum {
21 RT_NONE,
22 RT_MAC_SRC,
23 RT_MAC_DST,
24 RT_IPv4_SRC,
25 RT_IPv4_DST,
26 RT_PORT_SRC,
27 RT_PORT_DST,
28 RT_IPv4_PORT_SRC,
29 RT_IPv4_PORT_DST,
30 NUM_RULE_TYPES
31} rule_type_e;
32
37size_t firewall_product_count(void);
38
44const char *firewall_product_name(size_t product_idx);
45
51const char *firewall_product_rule_hint(size_t product_idx);
52
57const char *firewall_product_comment_prefix(size_t product_idx);
58
59/* Syntax function prototypes */
60typedef void (*syntax_func)(GString *rtxt, char *addr, uint32_t port, port_type ptype, bool inbound, bool deny);
61
66syntax_func firewall_product_mac_func(size_t product_idx);
67
72syntax_func firewall_product_ipv4_func(size_t product_idx);
73
78syntax_func firewall_product_port_func(size_t product_idx);
79
84syntax_func firewall_product_ipv4_port_func(size_t product_idx);
85
91bool firewall_product_does_inbound(size_t product_idx);
92
93#ifdef __cplusplus
94}
95#endif /* __cplusplus */
96
97#endif /* __UI_FIREWALL_RULES_H__ */
firewall_product_rule_hint
const char * firewall_product_rule_hint(size_t product_idx)
Definition firewall_rules.c:103
firewall_product_ipv4_func
syntax_func firewall_product_ipv4_func(size_t product_idx)
Definition firewall_rules.c:122
firewall_product_count
size_t firewall_product_count(void)
Definition firewall_rules.c:92
firewall_product_name
const char * firewall_product_name(size_t product_idx)
Definition firewall_rules.c:97
firewall_product_port_func
syntax_func firewall_product_port_func(size_t product_idx)
Definition firewall_rules.c:129
firewall_product_mac_func
syntax_func firewall_product_mac_func(size_t product_idx)
Definition firewall_rules.c:115
firewall_product_ipv4_port_func
syntax_func firewall_product_ipv4_port_func(size_t product_idx)
Definition firewall_rules.c:136
firewall_product_does_inbound
bool firewall_product_does_inbound(size_t product_idx)
Definition firewall_rules.c:142
firewall_product_comment_prefix
const char * firewall_product_comment_prefix(size_t product_idx)
Definition firewall_rules.c:109