summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-04-18 18:17:25 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-04-18 18:17:25 +0200
commit8e3bc96f29e8e0cefcd6349a1f98146677b20a9c (patch)
tree92db484ff9ca2965f9b5d72f580f745e7b9c83d6
parente088bb5a82e0f22aeb9ecfce8b201458b2227189 (diff)
[HICN-179] Increased size of vector that holds the counters to the right size.
Change-Id: I054754ff722106a5be45324c1ace25447deeef2c Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
-rw-r--r--hicn-plugin/src/faces/face.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hicn-plugin/src/faces/face.c b/hicn-plugin/src/faces/face.c
index 68d2ba01c..74939b77e 100644
--- a/hicn-plugin/src/faces/face.c
+++ b/hicn-plugin/src/faces/face.c
@@ -85,7 +85,9 @@ hicn_face_module_init (vlib_main_t * vm)
hicn_iface_ip_init (vm);
hicn_face_udp_init (vm);
hicn_iface_udp_init (vm);
- counters = vec_new (vlib_combined_counter_main_t, HICN_PARAM_FACES_MAX);
+ counters =
+ vec_new (vlib_combined_counter_main_t,
+ HICN_PARAM_FACES_MAX * HICN_N_COUNTER);
}
u8 *