aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-10-10 14:21:22 +0200
committerOle Trøan <otroan@employees.org>2019-10-22 09:09:58 +0000
commit2f71a888993dc9ee958f174d2e456221d7005f60 (patch)
treec72d57d7f5434e39abfdad032f269ee238d094cc /src/vat/api_format.c
parentbd38f7ff8ce7303eae4e8449c3b62a9dd39ed078 (diff)
ip: ipfix-export API update
Use consistent API types. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I5b03e5de111c3a3b8da4e9f02cba0aa99e3ee9f3
Diffstat (limited to 'src/vat/api_format.c')
-rw-r--r--src/vat/api_format.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index cbd7f901f98..3ad4ec6e2cd 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -11281,10 +11281,11 @@ api_set_ipfix_exporter (vat_main_t * vam)
M (SET_IPFIX_EXPORTER, mp);
- memcpy (mp->collector_address, collector_address.data,
+ memcpy (mp->collector_address.un.ip4, collector_address.data,
sizeof (collector_address.data));
mp->collector_port = htons ((u16) collector_port);
- memcpy (mp->src_address, src_address.data, sizeof (src_address.data));
+ memcpy (mp->src_address.un.ip4, src_address.data,
+ sizeof (src_address.data));
mp->vrf_id = htonl (vrf_id);
mp->path_mtu = htonl (path_mtu);
mp->template_interval = htonl (template_interval);