summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipfix-export
diff options
context:
space:
mode:
authorPaul Atkins <patkins@graphiant.com>2021-09-23 10:55:25 +0100
committerOle Tr�an <otroan@employees.org>2021-11-17 12:00:29 +0000
commit5df0b34898b261f90f7df0686ae702941108b6bb (patch)
treeb90069e7807bc93d72149b5d1c59cb25ce8d777a /src/vnet/ipfix-export
parent7a80c4715f6d638bfc30b080e6819e1eb735def5 (diff)
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 <patkins@graphiant.com> Change-Id: I9565be7887046739b5f309e021f34ed75c9e370e
Diffstat (limited to 'src/vnet/ipfix-export')
-rw-r--r--src/vnet/ipfix-export/flow_api.c3
1 files changed, 2 insertions, 1 deletions
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));