[Olsr-dev] [olsrd] [PATCH v1 23/29] gateway: initialise all variables in olsr_init_gateways
Ferry Huberts
(spam-protected)
Tue Jul 24 18:09:12 CEST 2012
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
src/gateway.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/gateway.c b/src/gateway.c
index 093a42e..915f154 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -198,11 +198,16 @@ olsr_init_gateways(void) {
olsr_cookie_set_memory_size(gw_mem_cookie, sizeof(struct gateway_entry));
avl_init(&gateway_tree, avl_comp_default);
- current_ipv4_gw = NULL;
- current_ipv6_gw = NULL;
+ current_ipv4_gw = NULL;
v4gw_tunnel = NULL;
+ v4gw_choosen_external = false;
+
+ current_ipv6_gw = NULL;
v6gw_tunnel = NULL;
+ v6gw_choosen_external = false;
+
+ gw_handler = NULL;
refresh_smartgw_netmask();
--
1.7.10.4
More information about the Olsr-dev
mailing list