diff options
author | Arturo Borrero Gonzalez <arturo@debian.org> | 2017-06-06 12:58:44 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-06 18:12:52 +0200 |
commit | dbfdea75ef9dfcae0d09044c65b2372c7483d0f7 (patch) | |
tree | 8be7085920fd223c230c6e765591d707f5f2998b /src/local.c | |
parent | 6feded70f54c5df11600b708825c1466b0d9090e (diff) |
conntrackd: deprecate unix backlog configuration
This configuration option doesn't add any value to users.
Use the magic value of 100 (i.e, the socket will keep 100 pending connections),
which I think is fair enough for what conntrackd can do in the unix socket.
Signed-off-by: Arturo Borrero Gonzalez <arturo@debian.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/local.c')
-rw-r--r-- | src/local.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/local.c b/src/local.c index 3395b4c..2b67885 100644 --- a/src/local.c +++ b/src/local.c @@ -26,6 +26,8 @@ #include <arpa/inet.h> #include <sys/un.h> +#define UNIX_SOCKET_BACKLOG 100 + int local_server_create(struct local_server *server, struct local_conf *conf) { int fd; @@ -53,7 +55,7 @@ int local_server_create(struct local_server *server, struct local_conf *conf) return -1; } - if (listen(fd, conf->backlog) == -1) { + if (listen(fd, UNIX_SOCKET_BACKLOG) == -1) { close(fd); unlink(conf->path); return -1; |