exp.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef __NETLINK_CLI_EXP_H_
  13. #define __NETLINK_CLI_EXP_H_
  14. #include <netlink/netfilter/exp.h>
  15. #include <linux/netfilter/nf_conntrack_common.h>
  16. extern struct nfnl_exp *nl_cli_exp_alloc(void);
  17. extern struct nl_cache *nl_cli_exp_alloc_cache(struct nl_sock *);
  18. extern void nl_cli_exp_parse_family(struct nfnl_exp *, char *);
  19. extern void nl_cli_exp_parse_timeout(struct nfnl_exp *, char *);
  20. extern void nl_cli_exp_parse_id(struct nfnl_exp *, char *);
  21. extern void nl_cli_exp_parse_helper_name(struct nfnl_exp *, char *);
  22. extern void nl_cli_exp_parse_zone(struct nfnl_exp *, char *);
  23. extern void nl_cli_exp_parse_flags(struct nfnl_exp *, char *);
  24. extern void nl_cli_exp_parse_class(struct nfnl_exp *, char *);
  25. extern void nl_cli_exp_parse_nat_dir(struct nfnl_exp *, char *);
  26. extern void nl_cli_exp_parse_fn(struct nfnl_exp *, char *);
  27. extern void nl_cli_exp_parse_src(struct nfnl_exp *, int, char *);
  28. extern void nl_cli_exp_parse_dst(struct nfnl_exp *, int, char *);
  29. extern void nl_cli_exp_parse_l4protonum(struct nfnl_exp *, int, char *);
  30. extern void nl_cli_exp_parse_src_port(struct nfnl_exp *, int, char *);
  31. extern void nl_cli_exp_parse_dst_port(struct nfnl_exp *, int, char *);
  32. extern void nl_cli_exp_parse_icmp_id(struct nfnl_exp *, int, char *);
  33. extern void nl_cli_exp_parse_icmp_type(struct nfnl_exp *, int, char *);
  34. extern void nl_cli_exp_parse_icmp_code(struct nfnl_exp *, int, char *);
  35. #endif