From 7736631fef63efde9c0fd68af89c3e2900286428 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 24 Apr 2007 18:39:51 +0000 Subject: - fix compilation warning in snprintf.c - introduce the new compare infrastructure: much simple than previous - introduce nfct_maxsize for nf_conntrack object allocated in the stack - more strict checkings in nfct_set_attr: third parameter is const --- include/internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/internal.h') diff --git a/include/internal.h b/include/internal.h index 56f6962..78020f3 100644 --- a/include/internal.h +++ b/include/internal.h @@ -148,11 +148,14 @@ int __build_conntrack(struct nfnl_subsys_handle *ssh, struct nfnlhdr *req, size_ int __parse_message_type(const struct nlmsghdr *nlh); void __parse_conntrack(const struct nlmsghdr *nlh, const struct nfattr *cda[], struct nf_conntrack *ct); int __snprintf_conntrack(char *buf, unsigned int len, const struct nf_conntrack *ct, unsigned int type, unsigned int msg_output, unsigned int flags); +int __snprintf_conntrack_default(char *buf, unsigned int len, const struct nf_conntrack *ct, const unsigned int msg_type, const unsigned int flags); +int __snprintf_conntrack_xml(char *buf, unsigned int len, const struct nf_conntrack *ct, const unsigned int msg_type, const unsigned int flags); int __callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data); int __setobjopt(struct nf_conntrack *ct, unsigned int option); int __getobjopt(const struct nf_conntrack *ct, unsigned int option); +int __compare(const struct nf_conntrack *ct1, const struct nf_conntrack *ct2); #endif -- cgit v1.2.3