X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Froute.c;h=758801be80bbd38582b08d5a39724b453652a6db;hb=c4afc481541bff4db7f57c81796b7a5f61cdb1b5;hp=fd0c697d77b8d57d9603efd291f45f2072603ac7;hpb=7ea85043ac1fb2096baea44f6b0af27ac0d0b2cf;p=tinc diff --git a/src/route.c b/src/route.c index fd0c697d..758801be 100644 --- a/src/route.c +++ b/src/route.c @@ -136,8 +136,7 @@ static void age_subnets(int fd, short events, void *data) { event_add(&age_subnets_event, &(struct timeval){10, 0}); } -static void learn_mac(mac_t *address) -{ +static void learn_mac(mac_t *address) { subnet_t *subnet; splay_node_t *node; connection_t *c; @@ -155,6 +154,7 @@ static void learn_mac(mac_t *address) subnet->type = SUBNET_MAC; subnet->expires = time(NULL) + macexpire; subnet->net.mac.address = *address; + subnet->weight = 10; subnet_add(myself, subnet); /* And tell all other tinc daemons it's our MAC */