From: Guus Sliepen Date: Fri, 22 Jan 2010 20:59:40 +0000 (+0100) Subject: Run subnet-up/down scripts for local MAC addresses as well. X-Git-Tag: release-1.0.12~7 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=469fa318bc817908af9a51e3a980ffc998fae6f2;hp=5d194b9f8767390d9fb1170554a8b6928214957a Run subnet-up/down scripts for local MAC addresses as well. --- diff --git a/src/route.c b/src/route.c index c04b0ad..87f08ce 100644 --- 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); } }