aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/interest_pcslookup_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/src/interest_pcslookup_node.c')
-rw-r--r--hicn-plugin/src/interest_pcslookup_node.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/hicn-plugin/src/interest_pcslookup_node.c b/hicn-plugin/src/interest_pcslookup_node.c
index 4947b67ff..e3668c565 100644
--- a/hicn-plugin/src/interest_pcslookup_node.c
+++ b/hicn-plugin/src/interest_pcslookup_node.c
@@ -99,7 +99,7 @@ hicn_interest_pcslookup_node_inline (vlib_main_t *vm,
b0 = vlib_get_buffer (vm, bi0);
- // By default we send the interest to drop
+ // By default we send the interest to strategy node
next0 = HICN_INTEREST_PCSLOOKUP_NEXT_STRATEGY;
// Update stats
@@ -109,7 +109,6 @@ hicn_interest_pcslookup_node_inline (vlib_main_t *vm,
hicn_name_t name;
hicn_packet_get_name (&hicn_get_buffer (b0)->pkbuf, &name);
ret = hicn_pcs_lookup_one (rt->pitcs, &name, &pcs_entry);
- //&hicn_get_buffer (b0)->name,
if (ret == HICN_ERROR_NONE)
{
@@ -389,9 +388,9 @@ hicn_interest_manifest_pcslookup_node_inline (vlib_main_t *vm,
strategy->hicn_add_interest (hicnb0->dpo_ctx_id);
// Check we have at least one next hop for the packet
- ret = strategy->hicn_select_next_hop (hicnb0->dpo_ctx_id,
- outfaces, &outfaces_len);
- if (ret == HICN_ERROR_NONE)
+ ret = strategy->hicn_select_next_hop (
+ hicnb0->dpo_ctx_id, hicnb0->face_id, outfaces, &outfaces_len);
+ if (ret == HICN_ERROR_NONE && outfaces_len > 0)
{
next0 = hicn_buffer_is_v6 (b0) ?
HICN_INTEREST_MANIFEST_PCSLOOKUP_NEXT_FACE6 :