gateway: reset bandwidth to zero when no link speed is advertised
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 24 Jul 2012 15:42:58 +0000 (17:42 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Jul 2012 06:55:06 +0000 (08:55 +0200)
in olsr_update_gateway_entry

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 9d19fa8..bb97cbb 100644 (file)
@@ -306,8 +306,8 @@ olsr_update_gateway_entry(union olsr_ip_addr *originator, union olsr_ip_addr *ma
     gw->downlink = deserialize_gw_speed(ptr[GW_HNA_DOWNLINK]);
   }
   else {
-    gw->uplink = 1;
-    gw->downlink = 1;
+    gw->uplink = 0;
+    gw->downlink = 0;
   }
 
   gw->ipv4 = (ptr[GW_HNA_FLAGS] & GW_HNA_FLAG_IPV4) != 0;