projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't enable -fstack-protector-all.
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
1896374
..
00ba4c0
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-229,7
+229,7
@@
static void learn_mac(mac_t *address) {
subnet = new_subnet();
subnet->type = SUBNET_MAC;
subnet = new_subnet();
subnet->type = SUBNET_MAC;
- subnet->expires =
time(NULL)
+ macexpire;
+ subnet->expires =
now.tv_sec
+ macexpire;
subnet->net.mac.address = *address;
subnet->weight = 10;
subnet_add(myself, subnet);
subnet->net.mac.address = *address;
subnet->weight = 10;
subnet_add(myself, subnet);
@@
-244,7
+244,7
@@
static void learn_mac(mac_t *address) {
timeout_add(&age_subnets_timeout, age_subnets, NULL, &(struct timeval){10, rand() % 100000});
} else {
if(subnet->expires)
timeout_add(&age_subnets_timeout, age_subnets, NULL, &(struct timeval){10, rand() % 100000});
} else {
if(subnet->expires)
- subnet->expires =
time(NULL)
+ macexpire;
+ subnet->expires =
now.tv_sec
+ macexpire;
}
}
}
}