Handle weighted Subnets in switch and hub modes.
[oweals/tinc.git] / src / route.c
index 2da781e5a8adcce7a10eda3089be6abd07e1e42d..5c69671ad30a7d55602569defe55db43eb970f9d 100644 (file)
@@ -117,6 +117,7 @@ static void learn_mac(mac_t *address) {
                subnet->type = SUBNET_MAC;
                subnet->expires = now + macexpire;
                subnet->net.mac.address = *address;
+               subnet->weight = 10;
                subnet_add(myself, subnet);
 
                /* And tell all other tinc daemons it's our MAC */