X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Froute.c;h=664fed89fbd102edb543b637ed7148edaa2009d9;hp=c04b0ad757ebc46d34698e3d8a8e0b6853050f5a;hb=40d91ff619a6ea24a2a35c9d934bcc6bace27e24;hpb=b45511118421920771f5dcd5e4bafc04376e4450 diff --git a/src/route.c b/src/route.c index c04b0ad7..664fed89 100644 --- a/src/route.c +++ b/src/route.c @@ -1,7 +1,7 @@ /* route.c -- routing Copyright (C) 2000-2005 Ivo Timmermans, - 2000-2009 Guus Sliepen + 2000-2010 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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); } }