diff options
author | mu.duojiao <mu.duojiao@zte.com.cn> | 2018-10-17 10:59:09 +0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-10-17 11:08:58 +0000 |
commit | 41b2ae7c1df585158627c5d9ffd8e4fd3a6d89eb (patch) | |
tree | 56a55f8e23ee3f72f9807024061116fcb8bbf3a2 /src | |
parent | da7bcd4bd684843bdadaab1831b12e3cbf1465a7 (diff) |
VPP-1459:Ip4 lookup fail when exist prefix cover.
Change-Id: I4ba0aeb65219596475345e42b8cd34019f5594c6
Signed-off-by: mu.duojiao <mu.duojiao@zte.com.cn>
(cherry picked from commit 9744e6d0273c0d7d11ab4f271c8694f69d51ccf3)
(cherry picked from commit b3aff922ffbddd61b44df50271e4aaee2820a432)
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/vnet/ip/ip4_mtrie.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/ip/ip4_mtrie.c b/src/vnet/ip/ip4_mtrie.c index 5aa9b926483..6df1f8da179 100644..100755 --- 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); |