Use new category for setting DLEP default metrics
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Fri, 10 Nov 2017 14:48:43 +0000 (15:48 +0100)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Fri, 10 Nov 2017 14:48:43 +0000 (15:48 +0100)
src-plugins/generic/dlep/dlep_extension.c

index 9872826..6d4661d 100644 (file)
@@ -281,7 +281,7 @@ dlep_extension_radio_write_session_init_ack(
 
     if (!oonf_layer2_data_has_value(l2data)) {
       meta = oonf_layer2_neigh_metadata_get(neigh_idx);
-      oonf_layer2_data_set(l2data, session->l2_origin,
+      oonf_layer2_data_set(l2data, session->l2_default_origin,
           meta->type, &ext->neigh_mapping[i].default_value);
     }
   }
@@ -297,7 +297,7 @@ dlep_extension_radio_write_session_init_ack(
 
     if (!oonf_layer2_data_has_value(l2data)) {
       meta = oonf_layer2_net_metadata_get(net_idx);
-      oonf_layer2_data_set(l2data, session->l2_origin,
+      oonf_layer2_data_set(l2data, session->l2_default_origin,
           meta->type, &ext->if_mapping[i].default_value);
     }
   }