summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2005-07-12 23:24:06 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2005-07-12 23:24:06 +0000
commit9ab85762233756f1e828f7c4c6007d25ac26f494 (patch)
treecc92265de49c76968a8e9e73cf77be95305a2bc2 /include
parente8c0b55fc1aac2238419cf6119930559d5c3119b (diff)
o Use conntrack netlink attributes: Major change
o Kill action setting: Mask based dumping
Diffstat (limited to 'include')
-rw-r--r--include/libct_proto.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/include/libct_proto.h b/include/libct_proto.h
index 6df03e7..51e23fc 100644
--- a/include/libct_proto.h
+++ b/include/libct_proto.h
@@ -5,6 +5,7 @@
#include "linux_list.h"
#include <getopt.h>
+#include "libctnetlink.h"
struct cta_proto;
@@ -13,16 +14,24 @@ struct ctproto_handler {
char *name;
u_int16_t protonum;
+
+ enum ctattr_protoinfo protoinfo_attr;
- int (*parse)(char c, char *argv[],
- struct ip_conntrack_tuple *orig,
- struct ip_conntrack_tuple *reply,
- union ip_conntrack_proto *proto,
+ int (*parse_opts)(char c, char *argv[],
+ struct ctnl_tuple *orig,
+ struct ctnl_tuple *reply,
+ struct ctnl_tuple *mask,
+ union ctnl_protoinfo *proto,
unsigned int *flags);
- void (*print_tuple)(struct ip_conntrack_tuple *t);
- void (*print_proto)(union ip_conntrack_proto *proto);
-
- int (*final_check)(unsigned int flags);
+ void (*parse_proto)(struct nfattr *cda[], struct ctnl_tuple *tuple);
+ void (*parse_protoinfo)(struct nfattr *cda[],
+ struct ctnl_conntrack *ct);
+ void (*print_proto)(struct ctnl_tuple *t);
+ void (*print_protoinfo)(union ctnl_protoinfo *protoinfo);
+
+ int (*final_check)(unsigned int flags,
+ struct ctnl_tuple *orig,
+ struct ctnl_tuple *reply);
void (*help)();