| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
firewall_rules.h
Go to the documentation of this file.
1
11
12#ifndef __UI_FIREWALL_RULES_H__
13#define __UI_FIREWALL_RULES_H__
14
15#ifdef __cplusplus
16 extern "C" {
17#endif /* __cplusplus */
18
22 typedef enum {
23 RT_NONE,
24 RT_MAC_SRC,
25 RT_MAC_DST,
26 RT_IPv4_SRC,
27 RT_IPv4_DST,
28 RT_PORT_SRC,
29 RT_PORT_DST,
30 RT_IPv4_PORT_SRC,
31 RT_IPv4_PORT_DST,
32 NUM_RULE_TYPES
33} rule_type_e;
34
39 size_t firewall_product_count(void);
40
46 const char *firewall_product_name(size_t product_idx);
47
53 const char *firewall_product_rule_hint(size_t product_idx);
54
59 const char *firewall_product_comment_prefix(size_t product_idx);
60
61/* Syntax function prototypes */
62 typedef 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
93 bool 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
port_type
Transport-layer port number types recognized by Wireshark.
Definition address.h:425
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
rule_type_e
rule_type_e
Classifies the address/port criterion used by a firewall rule entry.
Definition firewall_rules.h:22
RT_IPv4_DST
@ RT_IPv4_DST
Definition firewall_rules.h:27
NUM_RULE_TYPES
@ NUM_RULE_TYPES
Definition firewall_rules.h:32
RT_IPv4_PORT_SRC
@ RT_IPv4_PORT_SRC
Definition firewall_rules.h:30
RT_PORT_SRC
@ RT_PORT_SRC
Definition firewall_rules.h:28
RT_IPv4_PORT_DST
@ RT_IPv4_PORT_DST
Definition firewall_rules.h:31
RT_MAC_SRC
@ RT_MAC_SRC
Definition firewall_rules.h:24
RT_PORT_DST
@ RT_PORT_DST
Definition firewall_rules.h:29
RT_IPv4_SRC
@ RT_IPv4_SRC
Definition firewall_rules.h:26
RT_MAC_DST
@ RT_MAC_DST
Definition firewall_rules.h:25
RT_NONE
@ RT_NONE
Definition firewall_rules.h:23
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