projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix protocol version check for type 2 MTU probe replies.
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
8c65c4c
..
17f1c71
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-203,7
+203,7
@@
static void age_subnets(void *data) {
}
for list_each(connection_t, c, connection_list)
}
for list_each(connection_t, c, connection_list)
- if(c->
status.activ
e)
+ if(c->
edg
e)
send_del_subnet(c, s);
subnet_del(myself, s);
send_del_subnet(c, s);
subnet_del(myself, s);
@@
-238,7
+238,7
@@
static void learn_mac(mac_t *address) {
/* And tell all other tinc daemons it's our MAC */
for list_each(connection_t, c, connection_list)
/* And tell all other tinc daemons it's our MAC */
for list_each(connection_t, c, connection_list)
- if(c->
status.activ
e)
+ if(c->
edg
e)
send_add_subnet(c, subnet);
timeout_add(&age_subnets_timeout, age_subnets, NULL, &(struct timeval){10, rand() % 100000});
send_add_subnet(c, subnet);
timeout_add(&age_subnets_timeout, age_subnets, NULL, &(struct timeval){10, rand() % 100000});