From e5d00b3fdb6294cfa0e65082885575029a3b5b8b Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Sun, 19 May 2019 11:46:19 +0200 Subject: [HICN-197] Reworked PIT/CS entry initialization to correctly initialize it when data are pushed to the CS from a local application. Change-Id: I64a2bab413e74460b048f7c716630d9fcd5200cc Signed-off-by: Alberto Compagno --- hicn-plugin/src/pcs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hicn-plugin/src/pcs.h') diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h index f87cccf8a..b9b40a3fb 100644 --- a/hicn-plugin/src/pcs.h +++ b/hicn-plugin/src/pcs.h @@ -256,6 +256,14 @@ hicn_pit_init_data (hicn_pcs_entry_t * p) p->u.pit.faces.next_bucket = face_bkt - hicn_face_bucket_pool; } +/* Init pit/cs data block (usually inside hash table node) */ +static inline void +hicn_cs_init_data (hicn_pcs_entry_t * p) +{ + p->shared.entry_flags = 0; + p->u.pit.faces.n_faces = 0; + p->u.pit.faces.is_overflow = 0; +} static inline f64 -- cgit 1.2.3-korg