diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-01-19 16:40:07 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-01-21 09:01:28 +0000 |
commit | c15539af6f2f8e816475e8ed03d1992a773ccba3 (patch) | |
tree | 8e8e40284fafcb6cf01856208980b0fe2ecf4e66 | |
parent | f613a4402022cb51b1379e2bd6387ad9d0d6b50f (diff) |
ip: set correct error in ip6-local
Type: fix
Change-Id: Ib23f823e46494f80d9d857ddde88f4939bf2b3d1
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r-- | src/vnet/ip/ip6_forward.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ip/ip6_forward.c b/src/vnet/ip/ip6_forward.c index 74992746886..aba4067174a 100644 --- a/src/vnet/ip/ip6_forward.c +++ b/src/vnet/ip/ip6_forward.c @@ -1470,8 +1470,8 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node, next[1] = error[1] != IP6_ERROR_UNKNOWN_PROTOCOL ? IP_LOCAL_NEXT_DROP : next[1]; - b[0]->error = error_node->errors[0]; - b[1]->error = error_node->errors[1]; + b[0]->error = error_node->errors[error[0]]; + b[1]->error = error_node->errors[error[1]]; if (head_of_feature_arc) { @@ -1590,7 +1590,7 @@ ip6_local_inline (vlib_main_t * vm, vlib_node_runtime_t * node, next[0] = error != IP6_ERROR_UNKNOWN_PROTOCOL ? IP_LOCAL_NEXT_DROP : next[0]; - b[0]->error = error_node->errors[0]; + b[0]->error = error_node->errors[error]; if (head_of_feature_arc) { |