Fix variable used in layer2 generator loop
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 22 Mar 2018 08:25:59 +0000 (09:25 +0100)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 22 Mar 2018 08:25:59 +0000 (09:25 +0100)
src-plugins/generic/layer2_generator/layer2_generator.c

index 33b1563..b6ec489 100644 (file)
@@ -246,7 +246,7 @@ _cb_l2gen_event(struct oonf_timer_instance *ptr __attribute((unused))) {
   neigh->last_seen = oonf_clock_getNow();
 
   for (neigh_idx = 0; neigh_idx < OONF_LAYER2_NEIGH_COUNT; neigh_idx++) {
-    _set_data(&neigh->data[neigh_idx], oonf_layer2_neigh_metadata_get(net_idx)->type, event_counter);
+    _set_data(&neigh->data[neigh_idx], oonf_layer2_neigh_metadata_get(neigh_idx)->type, event_counter);
   }
   oonf_layer2_neigh_commit(neigh);
 }