From ea8216abbf38d4afcd8e1bed0e948df9111984ac 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, 6 Nov 2005 03:22:01 +0000 Subject: o move nfct_handler to libnetfilter_conntrack.c, better for encapsulation o fixed ICMP ID handling o fix -> libtool: link: libtool library `nfct_proto_*.la' must begin with `lib' o remove wrong flag at extensions/Makefile.am o bumped version to 0.0.26 o fixed versioning :( --- src/libnetfilter_conntrack.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libnetfilter_conntrack.c') diff --git a/src/libnetfilter_conntrack.c b/src/libnetfilter_conntrack.c index 63e5719..7ed76c4 100644 --- a/src/libnetfilter_conntrack.c +++ b/src/libnetfilter_conntrack.c @@ -22,6 +22,9 @@ #define NFCT_BUFSIZE 4096 +typedef int (*nfct_handler)(struct nfct_handle *cth, struct nlmsghdr *nlh, + void *arg); + /* Harald says: "better for encapsulation" ;) */ struct nfct_handle { struct nfnl_handle nfnlh; @@ -927,9 +930,9 @@ int nfct_event_conntrack(struct nfct_handle *cth) void nfct_register_proto(struct nfct_proto *h) { - if (strcmp(h->version, LIBNETFILTER_CONNTRACK_VERSION) != 0) { + if (strcmp(h->version, VERSION) != 0) { fprintf(stderr, "plugin `%s': version %s (I'm %s)\n", - h->name, h->version, LIBNETFILTER_CONNTRACK_VERSION); + h->name, h->version, VERSION); exit(1); } list_add(&h->head, &proto_list); -- cgit v1.2.3