Skip to content

Commit 9744e6d

Browse files
author
mu.duojiao
committed
VPP-1459:Ip4 lookup fail when exist prefix cover.
Change-Id: I4ba0aeb65219596475345e42b8cd34019f5594c6 Signed-off-by: mu.duojiao <[email protected]>
1 parent eb97e5f commit 9744e6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vnet/ip/ip4_mtrie.c

100644100755
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,7 @@ unset_leaf (ip4_fib_mtrie_t * m,
551551

552552
old_ply->leaves[i] =
553553
ip4_fib_mtrie_leaf_set_adj_index (a->cover_adj_index);
554-
old_ply->dst_address_bits_of_leaves[i] =
555-
clib_max (old_ply->dst_address_bits_base,
556-
a->cover_address_length);
554+
old_ply->dst_address_bits_of_leaves[i] = a->cover_address_length;
557555

558556
old_ply->n_non_empty_leafs +=
559557
ip4_fib_mtrie_leaf_is_non_empty (old_ply, i);

0 commit comments

Comments
 (0)