summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/faces/ip/face_ip.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-11-18 11:27:06 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-11-18 11:27:06 +0100
commitf4a91fd99e8f8226f1c209f40c186b181c9ca183 (patch)
treebd3bec7411047154f8d779dbf1f6da71634036de /hicn-plugin/src/faces/ip/face_ip.c
parent547acf3eed92d3564139cccf205c852178bcc310 (diff)
[HICN-391] Supporting midchain as adjacencies for an ip face
Michain support is important to get a netx hop in a face whose locator is resolved in the fib through a via. Change-Id: Id0ff1522cedd5a093f242499e310a24625a3852a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/faces/ip/face_ip.c')
-rw-r--r--hicn-plugin/src/faces/ip/face_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/faces/ip/face_ip.c b/hicn-plugin/src/faces/ip/face_ip.c
index 23d3900ec..d4ba158de 100644
--- a/hicn-plugin/src/faces/ip/face_ip.c
+++ b/hicn-plugin/src/faces/ip/face_ip.c
@@ -225,7 +225,7 @@ hicn_face_ip_find_adj (const ip46_address_t * remote_addr,
if (*adj != ~0)
temp = adj_get(*adj);
- if (temp == NULL || temp->lookup_next_index <= IP_LOOKUP_NEXT_REWRITE)
+ if (temp == NULL || temp->lookup_next_index <= IP_LOOKUP_NEXT_MIDCHAIN)
{
if(sw_if != ~0)
*adj = adj_nbr_add_or_lock(fib_pfx.fp_proto, link_type, remote_addr, sw_if);