summaryrefslogtreecommitdiff
path: root/include
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-23 10:30:21 +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-23 10:30:21 +0000
commita0754a2e4a63642e6fefb7bfbb19b9f5f9295009 (patch)
tree99bdabe7c5db15ac1939eee39faf788743a76775 /include
parent86c4c05681e8e38616fb7b0b575b4cd944ddfa83 (diff)
downloadconntrack-tools-a0754a2e4a63642e6fefb7bfbb19b9f5f9295009.tar.gz
conntrack-tools-a0754a2e4a63642e6fefb7bfbb19b9f5f9295009.zip
Max Kellermann <max@duempel.org>:
added struct local_server, several cleanups in local socket infrastructure This patch include minor changes by the comitter
Diffstat (limited to 'include')
-rw-r--r--include/conntrackd.h2
-rw-r--r--include/local.h11
2 files changed, 9 insertions, 4 deletions
diff --git a/include/conntrackd.h b/include/conntrackd.h
index b223a17..47898e2 100644
--- a/include/conntrackd.h
+++ b/include/conntrackd.h
@@ -98,7 +98,7 @@ struct ct_general_state {
sigset_t block;
FILE *log;
FILE *stats_log;
- int local;
+ struct local_server local;
struct ct_mode *mode;
struct ignore_pool *ignore_pool;
diff --git a/include/local.h b/include/local.h
index be77d35..6940755 100644
--- a/include/local.h
+++ b/include/local.h
@@ -11,10 +11,15 @@ struct local_conf {
char path[UNIX_PATH_MAX];
};
+struct local_server {
+ int fd;
+ char path[UNIX_PATH_MAX];
+};
+
/* local server */
-int local_server_create(struct local_conf *conf);
-void local_server_destroy(int fd, const char *);
-int do_local_server_step(int fd, void *data,
+int local_server_create(struct local_server *server, struct local_conf *conf);
+void local_server_destroy(struct local_server *server);
+int do_local_server_step(struct local_server *server, void *data,
void (*process)(int fd, void *data));
/* local client */