diff options
author | 2019-03-23 15:32:22 +0000 | |
---|---|---|
committer | 2019-03-23 15:32:22 +0000 | |
commit | 43562f9f02d35e5d540ab4028a0326c0c7cd4898 (patch) | |
tree | a015156872de191b209ca90da4bee8224e41b3f8 /hicn-plugin/src/faces/ip/face_ip.h | |
parent | dfc988a222a38da36999395e393e3b1ed1ccdfde (diff) | |
parent | 2ba7f1f0bef4ecb20af57283d456e66e31fa667a (diff) |
Merge "[HICN-138] Added number of received/transmitted bytes and packets on each face"
Diffstat (limited to 'hicn-plugin/src/faces/ip/face_ip.h')
-rw-r--r-- | hicn-plugin/src/faces/ip/face_ip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hicn-plugin/src/faces/ip/face_ip.h b/hicn-plugin/src/faces/ip/face_ip.h index 8c31f6dd3..852106b70 100644 --- a/hicn-plugin/src/faces/ip/face_ip.h +++ b/hicn-plugin/src/faces/ip/face_ip.h @@ -202,6 +202,13 @@ hicn_iface_ip_add (const ip46_address_t * local_addr, *pfaceid = hicn_dpoi_get_index (face); mhash_set_mem (&hicn_face_ip_remote_hashtb, &key, (uword *) pfaceid, 0); + + for (int i = 0; i < HICN_N_COUNTER; i++) + { + vlib_validate_combined_counter (&counters[(*pfaceid) * HICN_N_COUNTER], + i); + vlib_zero_combined_counter (&counters[(*pfaceid) * HICN_N_COUNTER], i); + } } /** |