Skip to content

Commit

Permalink
fib: fix fib_path_create() with drop targets
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
askorichenko authored and Neale Ranns committed Nov 27, 2023
1 parent 176cff5 commit 4b08632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vnet/fib/fib_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,8 @@ fib_path_create (fib_node_index_t pl_index,
dpo_copy(&path->exclusive.fp_ex_dpo, &rpath->dpo);
}
else if ((path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_PROHIBIT) ||
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_UNREACH))
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_ICMP_UNREACH) ||
(path->fp_cfg_flags & FIB_PATH_CFG_FLAG_DROP))
{
path->fp_type = FIB_PATH_TYPE_SPECIAL;
}
Expand Down

0 comments on commit 4b08632

Please sign in to comment.