From: mu.duojiao Date: Wed, 17 Oct 2018 02:59:09 +0000 (+0800) Subject: VPP-1459:Ip4 lookup fail when exist prefix cover. X-Git-Tag: v19.04-rc0~608 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9744e6d0273c0d7d11ab4f271c8694f69d51ccf3;p=vpp.git VPP-1459:Ip4 lookup fail when exist prefix cover. Change-Id: I4ba0aeb65219596475345e42b8cd34019f5594c6 Signed-off-by: mu.duojiao --- diff --git a/src/vnet/ip/ip4_mtrie.c b/src/vnet/ip/ip4_mtrie.c old mode 100644 new mode 100755 index 6cd199a971e..fbb8a748074 --- a/src/vnet/ip/ip4_mtrie.c +++ b/src/vnet/ip/ip4_mtrie.c @@ -551,9 +551,7 @@ unset_leaf (ip4_fib_mtrie_t * m, old_ply->leaves[i] = ip4_fib_mtrie_leaf_set_adj_index (a->cover_adj_index); - old_ply->dst_address_bits_of_leaves[i] = - clib_max (old_ply->dst_address_bits_base, - a->cover_address_length); + old_ply->dst_address_bits_of_leaves[i] = a->cover_address_length; old_ply->n_non_empty_leafs += ip4_fib_mtrie_leaf_is_non_empty (old_ply, i);