ap->num_rx_queues = mp->num_rx_queues;
if (mp->host_if_name_set)
ap->num_rx_queues = mp->num_rx_queues;
if (mp->host_if_name_set)
- ap->host_if_name = mp->host_if_name;
+ ap->host_if_name = format (0, "%s%c", mp->host_if_name, 0);
if (mp->host_mac_addr_set)
{
if (mp->host_mac_addr_set)
{
}
if (mp->host_namespace_set)
}
if (mp->host_namespace_set)
- ap->host_namespace = mp->host_namespace;
+ ap->host_namespace = format (0, "%s%c", mp->host_namespace, 0);
- ap->host_bridge = mp->host_bridge;
+ ap->host_bridge = format (0, "%s%c", mp->host_bridge, 0);
if (mp->host_ip4_prefix_set)
{
if (mp->host_ip4_prefix_set)
{
rmp->sw_if_index = ntohl (ap->sw_if_index);
vl_api_send_msg (reg, (u8 *) rmp);
rmp->sw_if_index = ntohl (ap->sw_if_index);
vl_api_send_msg (reg, (u8 *) rmp);
+
+ vec_free (ap->host_if_name);
+ vec_free (ap->host_namespace);
+ vec_free (ap->host_bridge);
+