projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle weighted Subnets in switch and hub modes.
[oweals/tinc.git]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index 2da781e5a8adcce7a10eda3089be6abd07e1e42d..5c69671ad30a7d55602569defe55db43eb970f9d 100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-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 */