12#ifndef __UI_FIREWALL_RULES_H__
13#define __UI_FIREWALL_RULES_H__
62typedef void (*syntax_func)(GString *rtxt,
char *addr, uint32_t port,
port_type ptype,
bool inbound,
bool deny);
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