summaryrefslogtreecommitdiff
path: root/src
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-10-27 01:23:35 +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-10-27 01:23:35 +0000
commitab803040bab7a5b02aa99f6ffdb782848163d964 (patch)
tree3f2e4417acbc550ef5553e289f1a406d8b369a54 /src
parent0a6f6cedb730df9280f99ee1acd007f9e5b971aa (diff)
downloadconntrack-tools-ab803040bab7a5b02aa99f6ffdb782848163d964.tar.gz
conntrack-tools-ab803040bab7a5b02aa99f6ffdb782848163d964.zip
See ChangeLog
Diffstat (limited to 'src')
-rw-r--r--src/conntrack.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index c6d90f9..3b3b26a 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -48,9 +48,6 @@
#include "conntrack.h"
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
-#define PROGNAME "conntrack"
-#define VERSION "0.90"
-
#ifndef PROC_SYS_MODPROBE
#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"
#endif
@@ -238,15 +235,15 @@ static char commands_v_options[NUMBER_OF_CMD][NUMBER_OF_OPT] =
/*EXP_EVENT*/ {'x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'},
};
-char *lib_dir = CONNTRACK_LIB_DIR;
+static char *lib_dir = CONNTRACK_LIB_DIR;
-LIST_HEAD(proto_list);
+static LIST_HEAD(proto_list);
void register_proto(struct ctproto_handler *h)
{
- if (strcmp(h->version, LIBCT_VERSION) != 0) {
+ if (strcmp(h->version, VERSION) != 0) {
fprintf(stderr, "plugin `%s': version %s (I'm %s)\n",
- h->name, h->version, LIBCT_VERSION);
+ h->name, h->version, VERSION);
exit(1);
}
list_add(&h->head, &proto_list);
@@ -443,14 +440,6 @@ err2str(int err, enum action command)
return strerror(err);
}
-static void dump_tuple(struct nfct_tuple *tp)
-{
- fprintf(stdout, "tuple %p: %u %u.%u.%u.%u:%hu -> %u.%u.%u.%u:%hu\n",
- tp, tp->protonum,
- NIPQUAD(tp->src.v4), ntohs(tp->l4src.all),
- NIPQUAD(tp->dst.v4), ntohs(tp->l4dst.all));
-}
-
#define PARSE_STATUS 0
#define PARSE_EVENT 1
#define PARSE_MAX 2