diff options
author | Mauro Sardara <msardara@cisco.com> | 2023-01-16 20:18:23 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2023-01-17 17:15:31 +0000 |
commit | 7560918629eb11aa7bdaee5f4856243b38c77f93 (patch) | |
tree | f8dcc9c747acf5dce32f5693090e2067bc2995cf /hicn-plugin/src/interest_pcslookup_node.c | |
parent | f3a58a1ea5f4b99b5e788aec1a5afdcb19c42074 (diff) |
feat: local-remote strategy
Ticket: HICN-824
Change-Id: Iea285cb499b13c943a142fa39328ee36c91ae913
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-plugin/src/interest_pcslookup_node.c')
-rw-r--r-- | hicn-plugin/src/interest_pcslookup_node.c | 9 |
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 : |