Add comments to provide info about VPP requirements 13/19113/1
authorOndrej Fabry <ofabry@cisco.com>
Tue, 23 Apr 2019 12:43:25 +0000 (14:43 +0200)
committerOndrej Fabry <ofabry@cisco.com>
Tue, 23 Apr 2019 12:43:25 +0000 (14:43 +0200)
Change-Id: I116b9c0ab064418940eec82fb1442d30816386d7
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
adapter/vppapiclient/stat_client.go

index 24700a3..ac47339 100644 (file)
@@ -24,7 +24,7 @@ package vppapiclient
 #include <stdio.h>
 #include <stdint.h>
 #include <arpa/inet.h>
-#include <vpp-api/client/vppapiclient.h>
+#include <vpp-api/client/vppapiclient.h> // VPP has to be installed!
 #include <vpp-api/client/stat_client.h>
 
 static int
@@ -138,13 +138,13 @@ govpp_stat_segment_data_get_combined_counter_index_bytes(stat_segment_data_t *da
 static uint8_t**
 govpp_stat_segment_data_get_name_vector(stat_segment_data_t *data)
 {
-       return data->name_vector;
+       return data->name_vector; // VPP 19.04 is required!
 }
 
 static char*
 govpp_stat_segment_data_get_name_vector_index(stat_segment_data_t *data, int index)
 {
-       return data->name_vector[index];
+       return data->name_vector[index]; // VPP 19.04 is required!
 }
 
 static void