summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRich Fought <rmf.aero@gmail.com>2014-02-27 00:02:13 (GMT)
committerThomas Haller <thaller@redhat.com>2014-04-14 17:20:53 (GMT)
commit8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f (patch)
tree620d165c676873f08b600759cb64be3623e662e1 /include
parentcb319e22f5680b49fad62dc7f0eb35b7d737cb3b (diff)
downloadlibnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.zip
libnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.tar.gz
libnl-8ff199947ffa4f7d4f6b0b878fde68d8ffcf7f0f.tar.bz2
netfilter/ct: expand CT parameters that can be used in add/delete operations
This expands functionality for manipulating conntracks over netlink by adding other attributes to nfnl_ct_build_message(). Added a command link program to add conntracks. https://github.com/thom311/libnl/pull/55 [thaller@redhat.com: cleaned up whitespace from original patch] Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/cli/ct.h1
-rw-r--r--include/netlink/netfilter/ct.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink/cli/ct.h b/include/netlink/cli/ct.h
index bed776b..ebe7c9d 100644
--- a/include/netlink/cli/ct.h
+++ b/include/netlink/cli/ct.h
@@ -30,5 +30,6 @@ extern void nl_cli_ct_parse_src_port(struct nfnl_ct *, int, char *);
extern void nl_cli_ct_parse_dst_port(struct nfnl_ct *, int, char *);
extern void nl_cli_ct_parse_tcp_state(struct nfnl_ct *, char *);
extern void nl_cli_ct_parse_status(struct nfnl_ct *, char *);
+extern void nl_cli_ct_parse_zone(struct nfnl_ct *, char *);
#endif
diff --git a/include/netlink/netfilter/ct.h b/include/netlink/netfilter/ct.h
index 31deeb4..ef5d035 100644
--- a/include/netlink/netfilter/ct.h
+++ b/include/netlink/netfilter/ct.h
@@ -70,6 +70,7 @@ extern int nfnl_ct_str2tcp_state(const char *name);
extern void nfnl_ct_set_status(struct nfnl_ct *, uint32_t);
extern void nfnl_ct_unset_status(struct nfnl_ct *, uint32_t);
+extern int nfnl_ct_test_status(const struct nfnl_ct *ct);
extern uint32_t nfnl_ct_get_status(const struct nfnl_ct *);
extern char * nfnl_ct_status2str(int, char *, size_t);
extern int nfnl_ct_str2status(const char *);