From f03dacaf6b7afb221a779cdc3ad6953a6aa770d7 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org" Date: Sun, 30 Oct 2005 15:32:27 +0000 Subject: o Added the expectation printing API o Bumped version to 0.2.2 --- include/libnetfilter_conntrack/libnetfilter_conntrack.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h index 18d5b53..71afa03 100644 --- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h @@ -13,7 +13,7 @@ #include #include -#define LIBNETFILTER_CONNTRACK_VERSION "0.2.1" +#define LIBNETFILTER_CONNTRACK_VERSION "0.2.2" enum { CONNTRACK = NFNL_SUBSYS_CTNETLINK, @@ -269,8 +269,8 @@ extern int nfct_sprintf_conntrack(char *buf, struct nfct_conntrack *ct, unsigned int flags); extern int nfct_sprintf_conntrack_id(char *buf, struct nfct_conntrack *ct, unsigned int flags); -extern int nfct_sprintf_address(char *buf, struct nfct_conntrack *ct, int dir); -extern int nfct_sprintf_proto(char *buf, struct nfct_conntrack *ct, int dir); +extern int nfct_sprintf_address(char *buf, struct nfct_tuple *t); +extern int nfct_sprintf_proto(char *buf, struct nfct_tuple *t); extern int nfct_sprintf_protoinfo(char *buf, struct nfct_conntrack *ct); extern int nfct_sprintf_timeout(char *buf, struct nfct_conntrack *ct); extern int nfct_sprintf_protocol(char *buf, struct nfct_conntrack *ct); @@ -279,7 +279,7 @@ extern int nfct_sprintf_status_seen_reply(char *buf, struct nfct_conntrack *ct); extern int nfct_sprintf_counters(char *buf, struct nfct_conntrack *ct, int dir); extern int nfct_sprintf_mark(char *buf, struct nfct_conntrack *ct); extern int nfct_sprintf_use(char *buf, struct nfct_conntrack *ct); -extern int nfct_sprintf_id(char *buf, struct nfct_conntrack *ct); +extern int nfct_sprintf_id(char *buf, unsigned int id); /* * Expectations @@ -295,4 +295,10 @@ extern int nfct_delete_expectation(struct nfct_handle *cth, extern int nfct_event_expectation(struct nfct_handle *cth); extern int nfct_flush_expectation_table(struct nfct_handle *cth); +/* + * expectation printing functions + */ +extern int nfct_sprintf_expect(char *buf, struct nfct_expect *exp); +extern int nfct_sprintf_expect_id(char *buf, struct nfct_expect *exp); + #endif /* _LIBNETFILTER_CONNTRACK_H_ */ -- cgit v1.2.3