sgw: fix default path costs for egress interfaces
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 10 Nov 2014 12:18:13 +0000 (13:18 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 12 Nov 2014 10:45:25 +0000 (11:45 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/egressFile.c

index 0665574..4ca6726 100644 (file)
@@ -300,7 +300,7 @@ bool egressBwCalculateCosts(struct egress_if_bw * bw, bool up) {
 void egressBwClear(struct egress_if_bw * bw, bool up) {
   bw->egressUk = 0;
   bw->egressDk = 0;
-  bw->path_cost = UINT32_MAX;
+  bw->path_cost = 0;
   memset(&bw->network, 0, sizeof(bw->network));
   memset(&bw->gateway, 0, sizeof(bw->gateway));