[OLSR-users] RFC: removal of internal interface index (was: internal interface index still needed in 0.5.0??)

Joerg Pommnitz (spam-protected)
Tue May 8 11:26:26 CEST 2007

Hello all,
attached is a patch that removes the internal interface index. Please read and comment! 

The onliest real use of the index seems to be in the following hunk:

--- olsrd-0.5.0.orig/src/process_routes.c    2007-01-31 13:36:50.000000000 +0100
+++ olsrd-0.5.0/src/process_routes.c    2007-05-08 10:54:22.000000000 +0200
@@ -251,7 +251,7 @@
       //printf("vs %s hc: %d ... ", olsr_ip_to_string(&destination->rt_dst), destination->rt_metric);      
       if (COMP_IP(&destination->rt_dst, &dst->rt_dst) &&
       COMP_IP(&destination->rt_router, &dst->rt_router) &&
-      (destination->rt_if->if_nr == dst->rt_if->if_nr))
+      (destination->rt_if->if_index == dst->rt_if->if_index))
       if(destination->rt_metric == dst->rt_metric)

Since the OS interface index is guaranteed to be unique, I consider my change to be correct.

If I didn't do anything stupid, please feel free to apply the patch to the olsrd repository.

Thanks in advance!

Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.patch
Type: application/octet-stream
Size: 5015 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20070508/cc6bce20/attachment.obj>

More information about the Olsr-users mailing list