features: fix crash due to missing null termination 01/3601/2
authorDamjan Marion <damarion@cisco.com>
Wed, 26 Oct 2016 21:50:47 +0000 (23:50 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 26 Oct 2016 23:10:59 +0000 (23:10 +0000)
Change-Id: I98b407f9b698307c5a0007b198a734674b33f925
Signed-off-by: Damjan Marion <damarion@cisco.com>
vnet/vnet/adj/adj_midchain.c

index c420155..6afff27 100644 (file)
@@ -262,42 +262,42 @@ VLIB_REGISTER_NODE (adj_midchain_tx_no_count_node, static) = {
 
 VNET_IP4_TX_FEATURE_INIT (adj_midchain_tx_ip4, static) = {
     .node_name = "adj-midchain-tx",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_IP4],
 };
 VNET_IP4_TX_FEATURE_INIT (adj_midchain_tx_no_count_ip4, static) = {
     .node_name = "adj-midchain-tx-no-count",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_IP4],
 };
 VNET_IP6_TX_FEATURE_INIT (adj_midchain_tx_ip6, static) = {
     .node_name = "adj-midchain-tx",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_IP6],
 };
 VNET_IP6_TX_FEATURE_INIT (adj_midchain_tx_no_count_ip6, static) = {
     .node_name = "adj-midchain-tx-no-count",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_IP6],
 };
 VNET_MPLS_TX_FEATURE_INIT (adj_midchain_tx_mpls, static) = {
     .node_name = "adj-midchain-txs",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_MPLS],
 };
 VNET_MPLS_TX_FEATURE_INIT (adj_midchain_tx_no_count_mpls, static) = {
     .node_name = "adj-midchain-tx-no-count",
-    .runs_before = ORDER_CONSTRAINTS {"interface-output"},
+    .runs_before = ORDER_CONSTRAINTS {"interface-output", 0},
     .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_MPLS],
 };
 VNET_ETHERNET_TX_FEATURE_INIT (adj_midchain_tx_ethernet, static) = {
     .node_name = "adj-midchain-tx",
-    .runs_before = ORDER_CONSTRAINTS {"error-drop"},
+    .runs_before = ORDER_CONSTRAINTS {"error-drop", 0},
     .feature_index = &adj_midchain_tx_feature_node[VNET_LINK_ETHERNET],
 };
 VNET_ETHERNET_TX_FEATURE_INIT (adj_midchain_tx_no_count_ethernet, static) = {
     .node_name = "adj-midchain-tx-no-count",
-    .runs_before = ORDER_CONSTRAINTS {"error-drop"},
+    .runs_before = ORDER_CONSTRAINTS {"error-drop", 0},
     .feature_index = &adj_midchain_tx_no_count_feature_node[VNET_LINK_ETHERNET],
 };