Allow modified layer-2 originator priorities
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Fri, 1 Dec 2017 08:18:29 +0000 (09:18 +0100)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Fri, 1 Dec 2017 08:18:29 +0000 (09:18 +0100)
src-plugins/generic/nl80211_listener/nl80211_listener.c
src-plugins/subsystems/oonf_layer2.h

index 04a03b9..521c7a9 100644 (file)
@@ -251,7 +251,7 @@ static uint32_t _nl80211_multicast_group = 0;
 static struct oonf_layer2_origin _layer2_updated_origin = {
   .name = "nl80211 updated",
   .proactive = true,
-  .priority = OONF_LAYER2_ORIGIN_RELIABLE,
+  .priority = OONF_LAYER2_ORIGIN_RELIABLE + 1,
 };
 static struct oonf_layer2_origin _layer2_data_origin = {
   .name = "nl80211",
index 5ac87fc..6e9034f 100644 (file)
  * priorities of layer2 originators
  */
 enum oonf_layer2_origin_priority {
-  OONF_LAYER2_ORIGIN_UNKNOWN,
-  OONF_LAYER2_ORIGIN_UNRELIABLE,
-  OONF_LAYER2_ORIGIN_CONFIGURED,
-  OONF_LAYER2_ORIGIN_RELIABLE,
+  OONF_LAYER2_ORIGIN_UNKNOWN    =  0,
+  OONF_LAYER2_ORIGIN_UNRELIABLE = 10,
+  OONF_LAYER2_ORIGIN_CONFIGURED = 20,
+  OONF_LAYER2_ORIGIN_RELIABLE   = 30,
 };
 
 /**