summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/pff/pft.h
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-06-21 12:41:39 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-06-29 08:32:59 +0200
commit64792da0de8724bb85e9e3cf114c452995c24140 (patch)
treec051f3e7a2d55de8a2632049c5cbf84d43c0c39c /src/ipcpd/unicast/pff/pft.h
parentb46359c11b879d610997eb1e9069e943e19c4244 (diff)
downloadouroboros-64792da0de8724bb85e9e3cf114c452995c24140.tar.gz
ouroboros-64792da0de8724bb85e9e3cf114c452995c24140.zip
ipcpd: Use hash_mix64 for pft keys
Drops the per-table hash_key flag and the local MD5 hash() helper. The calc_key function now folds the key with hash_mix64 unconditionally. Simplifies pft_create, which no longer takes a bool. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pff/pft.h')
-rw-r--r--src/ipcpd/unicast/pff/pft.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ipcpd/unicast/pff/pft.h b/src/ipcpd/unicast/pff/pft.h
index 3bb9cff7..15bbe451 100644
--- a/src/ipcpd/unicast/pff/pft.h
+++ b/src/ipcpd/unicast/pff/pft.h
@@ -24,14 +24,12 @@
#define OUROBOROS_PFT_H
#include <stdint.h>
-#include <stdbool.h>
#include <stdlib.h>
struct pft;
/* Buckets is rounded up to the nearest power of 2 */
-struct pft * pft_create(uint64_t buckets,
- bool hash_key);
+struct pft * pft_create(uint64_t buckets);
void pft_destroy(struct pft * table);