diff options
author | Dmitry Vakhrushev <dmitry@netgate.com> | 2018-03-16 20:26:32 +0300 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-03-19 11:17:48 +0000 |
commit | f38bef46a3511249f352d18072f97a49f2c5b06c (patch) | |
tree | d9196729dae732b92a13b8565d22b99e597255c3 | |
parent | 2ae2bc5380845d1480ec385749b7e8515e3b2185 (diff) |
FIX: Fixed ip6_fib_dump api function response.
Change-Id: I26c5d61bc2f6188bcd4ecac4b5e9385821b0398b
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
-rw-r--r-- | src/vnet/dpo/ip_null_dpo.c | 6 | ||||
-rw-r--r-- | src/vnet/dpo/ip_null_dpo.h | 2 | ||||
-rw-r--r-- | src/vnet/fib/fib_api.c | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/vnet/dpo/ip_null_dpo.c b/src/vnet/dpo/ip_null_dpo.c index 22682e4eee4..e8804c067bd 100644 --- a/src/vnet/dpo/ip_null_dpo.c +++ b/src/vnet/dpo/ip_null_dpo.c @@ -96,6 +96,12 @@ ip_null_dpo_get (index_t indi) return (&ip_null_dpos[indi]); } +ip_null_dpo_action_t +ip_null_dpo_get_action (index_t indi) +{ + return (ip_null_dpos[indi].ind_action); +} + static void ip_null_dpo_lock (dpo_id_t *dpo) { diff --git a/src/vnet/dpo/ip_null_dpo.h b/src/vnet/dpo/ip_null_dpo.h index 002a2a7016d..6c7ced5124a 100644 --- a/src/vnet/dpo/ip_null_dpo.h +++ b/src/vnet/dpo/ip_null_dpo.h @@ -53,4 +53,6 @@ extern void ip_null_dpo_add_and_lock (dpo_proto_t proto, extern void ip_null_dpo_module_init(void); +extern ip_null_dpo_action_t ip_null_dpo_get_action(index_t indi); + #endif diff --git a/src/vnet/fib/fib_api.c b/src/vnet/fib/fib_api.c index a2f7e79b03c..a180cb94c7e 100644 --- a/src/vnet/fib/fib_api.c +++ b/src/vnet/fib/fib_api.c @@ -217,7 +217,7 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath, out->is_drop = true; break; case DPO_IP_NULL: - switch (api_rpath->dpo.dpoi_index) + switch (ip_null_dpo_get_action(api_rpath->dpo.dpoi_index)) { case IP_NULL_ACTION_NONE: out->is_drop = true; |