From 7a61acabea43218b67e4c834ca25587767ded489 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 19:39:11 +0200 Subject: [PATCH] Added hash_t definitions --- src/subnet.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/subnet.h b/src/subnet.h index 9fd95b64..2932cea0 100644 --- a/src/subnet.h +++ b/src/subnet.h @@ -22,6 +22,7 @@ #define __TINC_SUBNET_H__ #include "net.h" +#include "hash.h" typedef enum subnet_type_t { SUBNET_MAC = 0, @@ -65,6 +66,9 @@ typedef struct subnet_t { #define MAXNETSTR 64 extern splay_tree_t *subnet_tree; +extern hash_t *ipv4_cache; +extern hash_t *ipv6_cache; +extern hash_t *mac_cache; extern int subnet_compare(const struct subnet_t *, const struct subnet_t *); extern subnet_t *new_subnet(void) __attribute__ ((__malloc__));