summaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo/receive_dpo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dpo/receive_dpo.c')
-rw-r--r--src/vnet/dpo/receive_dpo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/dpo/receive_dpo.c b/src/vnet/dpo/receive_dpo.c
index 30ddceeb23e..949dbfa6587 100644
--- a/src/vnet/dpo/receive_dpo.c
+++ b/src/vnet/dpo/receive_dpo.c
@@ -25,6 +25,12 @@
*/
receive_dpo_t *receive_dpo_pool;
+int
+dpo_is_receive (const dpo_id_t *dpo)
+{
+ return (dpo->dpoi_type == DPO_RECEIVE);
+}
+
static receive_dpo_t *
receive_dpo_alloc (void)
{