summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_cttimeout
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 15:06:29 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 15:08:41 +0200
commitf156d51b35485befb6aa9b750ab9fe462e25dd56 (patch)
treeb0d2b7362b15355bc4cd10b892d1b34c7a400349 /include/libnetfilter_cttimeout
parentef53066dfaf1b5467c790bfa65a295a6cccd7562 (diff)
src: add new parameter type to nfct_timeout_snprintf
Thus, we can extend this interface to support the timeout policy in XML output in the future. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnetfilter_cttimeout')
-rw-r--r--include/libnetfilter_cttimeout/libnetfilter_cttimeout.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h b/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
index e8e49ed..00c8b81 100644
--- a/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
+++ b/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
@@ -107,7 +107,11 @@ struct nlmsghdr *nfct_timeout_nlmsg_build_hdr(char *buf, uint8_t cmd, uint16_t f
void nfct_timeout_nlmsg_build_payload(struct nlmsghdr *, const struct nfct_timeout *);
int nfct_timeout_nlmsg_parse_payload(const struct nlmsghdr *nlh, struct nfct_timeout *);
-int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *, unsigned int flags);
+enum {
+ NFCT_TIMEOUT_O_DEFAULT,
+};
+
+int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *, unsigned int type, unsigned int flags);
#ifdef __cplusplus
} /* extern "C" */