1 /* 2 * netlink/cli/exp.h CLI Expectation Helper 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation version 2.1 7 * of the License. 8 * 9 * Copyright (c) 2012 Rich Fought <Rich.Fought@watchguard.com> 10 * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch> 11 */ 12 13 #ifndef __NETLINK_CLI_EXP_H_ 14 #define __NETLINK_CLI_EXP_H_ 15 16 #include <netlink/netfilter/exp.h> 17 #include <linux/netfilter/nf_conntrack_common.h> 18 19 extern struct nfnl_exp *nl_cli_exp_alloc(void); 20 extern struct nl_cache *nl_cli_exp_alloc_cache(struct nl_sock *); 21 22 extern void nl_cli_exp_parse_family(struct nfnl_exp *, char *); 23 extern void nl_cli_exp_parse_timeout(struct nfnl_exp *, char *); 24 extern void nl_cli_exp_parse_id(struct nfnl_exp *, char *); 25 extern void nl_cli_exp_parse_helper_name(struct nfnl_exp *, char *); 26 extern void nl_cli_exp_parse_zone(struct nfnl_exp *, char *); 27 extern void nl_cli_exp_parse_flags(struct nfnl_exp *, char *); 28 extern void nl_cli_exp_parse_class(struct nfnl_exp *, char *); 29 extern void nl_cli_exp_parse_nat_dir(struct nfnl_exp *, char *); 30 extern void nl_cli_exp_parse_fn(struct nfnl_exp *, char *); 31 32 extern void nl_cli_exp_parse_src(struct nfnl_exp *, int, char *); 33 extern void nl_cli_exp_parse_dst(struct nfnl_exp *, int, char *); 34 extern void nl_cli_exp_parse_l4protonum(struct nfnl_exp *, int, char *); 35 extern void nl_cli_exp_parse_src_port(struct nfnl_exp *, int, char *); 36 extern void nl_cli_exp_parse_dst_port(struct nfnl_exp *, int, char *); 37 extern void nl_cli_exp_parse_icmp_id(struct nfnl_exp *, int, char *); 38 extern void nl_cli_exp_parse_icmp_type(struct nfnl_exp *, int, char *); 39 extern void nl_cli_exp_parse_icmp_code(struct nfnl_exp *, int, char *); 40 41 42 #endif 43