[Olsr-dev] [PATCH v1 1/3] sgw: sgw HNAs are not considered normal HNAs during processing

Ferry Huberts (spam-protected)
Fri May 8 14:22:46 CEST 2015


From: Ferry Huberts <(spam-protected)>

This has always been the case, just make it explicit.

Note that the sgw HNAs are kept in a (separate) avl tree,
while normal HNAs are kept in a (different) hash table.

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/hna_set.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/hna_set.c b/src/hna_set.c
index 74df21f..72310d9 100644
--- a/src/hna_set.c
+++ b/src/hna_set.c
@@ -444,6 +444,7 @@ olsr_input_hna(union olsr_message *m, struct interface_olsr *in_if __attribute__
 #ifdef __linux__
     if (olsr_cnf->smart_gw_active && olsr_is_smart_gateway(&prefix, &mask)) {
       olsr_update_gateway_entry(&originator, &mask, prefix.prefix_len, msg_seq_number);
+      continue;
     }
 #endif /* __linux__ */
 
-- 
2.1.0





More information about the Olsr-dev mailing list