[Olsr-dev] [olsrd] [PATCH v1 29/29] gateway: reset bandwidth to zero when no link speed is advertised
Ferry Huberts
(spam-protected)
Tue Jul 24 18:09:18 CEST 2012
From: Ferry Huberts <(spam-protected)>
in olsr_update_gateway_entry
Signed-off-by: Ferry Huberts <(spam-protected)>
---
src/gateway.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gateway.c b/src/gateway.c
index d54f748..df5f2de 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -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;
--
1.7.10.4
More information about the Olsr-dev
mailing list