| /* SPDX-License-Identifier: LGPL-2.1-only */ |
| /* |
| * Copyright (c) 2012 Rich Fought <Rich.Fought@watchguard.com> |
| * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch> |
| */ |
| |
| #ifndef __NETLINK_CLI_EXP_H_ |
| #define __NETLINK_CLI_EXP_H_ |
| |
| #include <netlink/netfilter/exp.h> |
| #include <linux/netfilter/nf_conntrack_common.h> |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| extern struct nfnl_exp *nl_cli_exp_alloc(void); |
| extern struct nl_cache *nl_cli_exp_alloc_cache(struct nl_sock *); |
| |
| extern void nl_cli_exp_parse_family(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_timeout(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_id(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_helper_name(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_zone(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_flags(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_class(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_nat_dir(struct nfnl_exp *, char *); |
| extern void nl_cli_exp_parse_fn(struct nfnl_exp *, char *); |
| |
| extern void nl_cli_exp_parse_src(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_dst(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_l4protonum(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_src_port(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_dst_port(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_icmp_id(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_icmp_type(struct nfnl_exp *, int, char *); |
| extern void nl_cli_exp_parse_icmp_code(struct nfnl_exp *, int, char *); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif |