From ab803040bab7a5b02aa99f6ffdb782848163d964 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: Thu, 27 Oct 2005 01:23:35 +0000 Subject: See ChangeLog --- src/conntrack.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src') 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 -#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 -- cgit v1.2.3