diff options
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 5 |
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); |