summaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-05 16:41:15 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-05 16:41:15 +0000
commit1102a95296e39f671efe51bb6bd9b30e5c14c91e (patch)
treed1d42347ea82ce0075884acc23ffa7ba932fb3a1 /include/log.h
parent1c0b4d3721e40586219fb7676e61e6ba19affdd2 (diff)
implement buffered connection logging to improve performance
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/log.h b/include/log.h
index 467ae8f..b5bbddb 100644
--- a/include/log.h
+++ b/include/log.h
@@ -1,9 +1,15 @@
#ifndef _LOG_H_
#define _LOG_H_
+#include <stdio.h>
+
+struct buffer;
+struct nf_conntrack;
+
int init_log();
void dlog(FILE *fd, int priority, char *format, ...);
-void dlog_ct(FILE *fd, struct nf_conntrack *ct);
+void dlog_buffered_ct(FILE *fd, struct buffer *b, struct nf_conntrack *ct);
+void dlog_buffered_ct_flush(void *buffer_data, void *data);
void close_log();
#endif