Change-Id: I26c5d61bc2f6188bcd4ecac4b5e9385821b0398b
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
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)
{
extern void ip_null_dpo_module_init(void);
+extern ip_null_dpo_action_t ip_null_dpo_get_action(index_t indi);
+
#endif
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;