[Olsr-dev] [PATCH v1 13/23] gateway: use SmartGatewayUseCount setting the the gateway lists
Ferry Huberts
(spam-protected)
Tue Dec 4 16:17:20 CET 2012
From: Ferry Huberts <(spam-protected)>
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 44e59ab..3d055d8 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -181,8 +181,8 @@ int olsr_init_gateways(void) {
avl_init(&gateway_tree, avl_comp_default);
- olsr_gw_list_init(&gw_list_ipv4, 1);
- olsr_gw_list_init(&gw_list_ipv6, 1);
+ olsr_gw_list_init(&gw_list_ipv4, olsr_cnf->smart_gw_use_count);
+ olsr_gw_list_init(&gw_list_ipv6, olsr_cnf->smart_gw_use_count);
current_ipv4_gw = NULL;
current_ipv6_gw = NULL;
--
1.7.11.7
More information about the Olsr-dev
mailing list