diff options
author | 2019-04-11 18:54:52 +0200 | |
---|---|---|
committer | 2019-04-11 19:02:05 +0200 | |
commit | d75c88d2c066e7886cf0bc4ebeceee073588b750 (patch) | |
tree | 26e0722f0adad8ec0e33cc788f8b2106e8b342b4 /hicn-plugin/src/data_fwd_node.c | |
parent | e3533af73ab35a66530292f698b3e2a8fff2d80d (diff) |
[HICN-176] Fixed bitmap size in pit entry and added static assert to avoid misconfiguration of parameters in param.h
Change-Id: Ia64eaebe267f87bd5f93abf3e5a9e80bab735765
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/data_fwd_node.c')
-rw-r--r-- | hicn-plugin/src/data_fwd_node.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hicn-plugin/src/data_fwd_node.c b/hicn-plugin/src/data_fwd_node.c index f7c8ae70b..efb98164d 100644 --- a/hicn-plugin/src/data_fwd_node.c +++ b/hicn-plugin/src/data_fwd_node.c @@ -168,7 +168,8 @@ hicn_data_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node, * not changed from the lookup. */ - if (tnow > pitp->shared.expire_time) + if (tnow > pitp->shared.expire_time + || (hash_entry0->he_flags & HICN_HASH_ENTRY_FLAG_DELETED)) { dpo_id_t hicn_dpo_id0 = { dpo_vft0->hicn_dpo_get_type (), 0, 0, dpo_ctx_id0 }; @@ -503,6 +504,7 @@ hicn_satisfy_faces (vlib_main_t * vm, u32 bi0, *n_left_to_next -= 1; n_left_from -= 1; clones += 1; + next0 = face0->dpoi_next_node; vnet_buffer (h0)->ip.adj_index[VLIB_TX] = face0->dpoi_index; |