ipfix-export: set msg id correctly for dump msg 08/34008/3
authorPaul Atkins <patkins@graphiant.com>
Thu, 23 Sep 2021 09:55:25 +0000 (10:55 +0100)
committerOle Tr�an <otroan@employees.org>
Wed, 17 Nov 2021 12:00:29 +0000 (12:00 +0000)
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 <patkins@graphiant.com>
Change-Id: I9565be7887046739b5f309e021f34ed75c9e370e

src/vnet/ipfix-export/flow_api.c

index 75a6564..deee9d6 100644 (file)
@@ -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));