Skip to content

Commit 4b08632

Browse files
askorichenkoNeale Ranns
authored andcommitted
fib: fix fib_path_create() with drop targets
Properly set type path->fp_type = FIB_PATH_TYPE_SPECIAL for paths with (path->fp_cfg_flags & FIB_PATH_CFG_FLAG_DROP) Type: fix Change-Id: Id61dbcda781d872b878e6a6410c05b840795ed46 Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
1 parent 176cff5 commit 4b08632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vnet/fib/fib_path.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,8 @@ fib_path_create (fib_node_index_t pl_index,
13651365
dpo_copy(&path->exclusive.fp_ex_dpo, &rpath->dpo);
13661366
}
13671367
else if ((path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_PROHIBIT) ||
1368-
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_UNREACH))
1368+
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_UNREACH) ||
1369+
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_DROP))
13691370
{
13701371
path->fp_type = FIB_PATH_TYPE_SPECIAL;
13711372
}

0 commit comments

Comments
 (0)