From b28ff39f42877daef31383748fd2f313d7fd67c1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Jan 2014 00:57:38 +0100 Subject: bus: rework bloom filter logic to operate with variable bloom filter sizes and numbers of hash functions In order to make the bloom filter logic more future proof communicate bloom filter parameters from the original bus creator to the clients, and allow them to be variable within certain ranges. --- src/libsystemd/sd-bus/bus-internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libsystemd/sd-bus/bus-internal.h') diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h index 69e07018d8..a4160ef4a1 100644 --- a/src/libsystemd/sd-bus/bus-internal.h +++ b/src/libsystemd/sd-bus/bus-internal.h @@ -271,6 +271,9 @@ struct sd_bus { char *cgroup_root; char *connection_name; + + size_t bloom_size; + unsigned bloom_n_hash; }; #define BUS_DEFAULT_TIMEOUT ((usec_t) (25 * USEC_PER_SEC)) -- cgit v1.2.3-54-g00ecf