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:
5d194b9
)
Run subnet-up/down scripts for local MAC addresses as well.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 22 Jan 2010 20:59:40 +0000
(21:59 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 22 Jan 2010 20:59:40 +0000
(21:59 +0100)
src/route.c
patch
|
blob
|
history
diff --git
a/src/route.c
b/src/route.c
index c04b0ad757ebc46d34698e3d8a8e0b6853050f5a..87f08ce9e40d855f0633ea7ff08cb4f7eedc2b5c 100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-188,6
+188,7
@@
static void learn_mac(mac_t *address) {
subnet->net.mac.address = *address;
subnet->weight = 10;
subnet_add(myself, subnet);
+ subnet_update(myself, subnet, true);
/* And tell all other tinc daemons it's our MAC */
@@
-223,6
+224,7
@@
void age_subnets(void) {
send_del_subnet(c, s);
}
+ subnet_update(myself, s, false);
subnet_del(myself, s);
}
}