summaryrefslogtreecommitdiffstats
path: root/src/libnetfilter_conntrack.c
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-11-06 03:22:01 +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-11-06 03:22:01 +0000
commitea8216abbf38d4afcd8e1bed0e948df9111984ac (patch)
tree0012528501846214e3f50526f11ec80880c1a2b1 /src/libnetfilter_conntrack.c
parent9713cbc9738611d962aad548bbf61606cc1503f3 (diff)
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 :(
Diffstat (limited to 'src/libnetfilter_conntrack.c')
-rw-r--r--src/libnetfilter_conntrack.c7
1 files changed, 5 insertions, 2 deletions
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);