summaryrefslogtreecommitdiff
path: root/proto/bfd/bfd.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-11-26 22:37:24 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-12-01 13:49:42 +0100
commite7d2ac4401be8aaf9629e248cad6a74498a6be24 (patch)
tree43fc2a026bb83c56d614e8551701ce9feaef71f2 /proto/bfd/bfd.c
parent283c7dfada53a6dee6a8a17ecab492ffafd44b66 (diff)
Finishes add-path.
Fixes some bugs and uses generic hash implementation.
Diffstat (limited to 'proto/bfd/bfd.c')
-rw-r--r--proto/bfd/bfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c
index 89355483..c6fd311a 100644
--- a/proto/bfd/bfd.c
+++ b/proto/bfd/bfd.c
@@ -106,13 +106,13 @@
#define HASH_ID_KEY(n) n->loc_id
#define HASH_ID_NEXT(n) n->next_id
-#define HASH_ID_EQ(a,b) (a == b)
-#define HASH_ID_FN(k) (k)
+#define HASH_ID_EQ(a,b) a == b
+#define HASH_ID_FN(k) k
#define HASH_IP_KEY(n) n->addr
#define HASH_IP_NEXT(n) n->next_ip
#define HASH_IP_EQ(a,b) ipa_equal(a,b)
-#define HASH_IP_FN(k) ipa_hash(k)
+#define HASH_IP_FN(k) ipa_hash32(k)
static list bfd_proto_list;
static list bfd_wait_list;