From 7560918629eb11aa7bdaee5f4856243b38c77f93 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 16 Jan 2023 20:18:23 +0000 Subject: feat: local-remote strategy Ticket: HICN-824 Change-Id: Iea285cb499b13c943a142fa39328ee36c91ae913 Signed-off-by: Mauro Sardara --- hicn-plugin/src/interest_pcslookup_node.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hicn-plugin/src/interest_pcslookup_node.c') 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 : -- cgit 1.2.3-korg