projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
322ffad
)
Make subnet caches static.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 12 Jul 2015 11:08:34 +0000
(13:08 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 12 Jul 2015 11:08:34 +0000
(13:08 +0200)
src/subnet.c
patch
|
blob
|
history
diff --git
a/src/subnet.c
b/src/subnet.c
index 534e5b53d562a9f8ae3f820c406622b65143f13b..090a62bfe74236e4d7289e366d0a063f25f3630e 100644
(file)
--- a/
src/subnet.c
+++ b/
src/subnet.c
@@
-40,9
+40,9
@@
splay_tree_t *subnet_tree;
/* Subnet lookup cache */
-hash_t *ipv4_cache;
-hash_t *ipv6_cache;
-hash_t *mac_cache;
+
static
hash_t *ipv4_cache;
+
static
hash_t *ipv6_cache;
+
static
hash_t *mac_cache;
void subnet_cache_flush(void) {
hash_clear(ipv4_cache);