From 5df0b34898b261f90f7df0686ae702941108b6bb Mon Sep 17 00:00:00 2001 From: Paul Atkins Date: Thu, 23 Sep 2021 10:55:25 +0100 Subject: [PATCH] ipfix-export: set msg id correctly for dump msg When sending the reply to the VL_API_IPFIX_EXPORTER_DUMP message the message id has to be added to the message base. Type: fix Signed-off-by: Paul Atkins Change-Id: I9565be7887046739b5f309e021f34ed75c9e370e --- src/vnet/ipfix-export/flow_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vnet/ipfix-export/flow_api.c b/src/vnet/ipfix-export/flow_api.c index 75a656468db..deee9d6909a 100644 --- a/src/vnet/ipfix-export/flow_api.c +++ b/src/vnet/ipfix-export/flow_api.c @@ -150,7 +150,8 @@ vl_api_ipfix_exporter_dump_t_handler (vl_api_ipfix_exporter_dump_t * mp) rmp = vl_msg_api_alloc (sizeof (*rmp)); clib_memset (rmp, 0, sizeof (*rmp)); - rmp->_vl_msg_id = ntohs (VL_API_IPFIX_EXPORTER_DETAILS); + rmp->_vl_msg_id = + ntohs ((REPLY_MSG_ID_BASE) + VL_API_IPFIX_EXPORTER_DETAILS); rmp->context = mp->context; memcpy (&collector.ip4, &frm->ipfix_collector, sizeof (ip4_address_t)); -- 2.16.6