+ mp->rx_ring_sz = htons (tap_if->rx_ring_sz);
+ mp->tx_ring_sz = htons (tap_if->tx_ring_sz);
+ mac_address_encode (&tap_if->host_mac_addr, mp->host_mac_addr);
+ clib_memcpy (mp->host_if_name, tap_if->host_if_name,
+ MIN (ARRAY_LEN (mp->host_if_name) - 1,
+ strlen ((const char *) tap_if->host_if_name)));
+ clib_memcpy (mp->host_namespace, tap_if->host_namespace,
+ MIN (ARRAY_LEN (mp->host_namespace) - 1,
+ strlen ((const char *) tap_if->host_namespace)));
+ clib_memcpy (mp->host_bridge, tap_if->host_bridge,
+ MIN (ARRAY_LEN (mp->host_bridge) - 1,
+ strlen ((const char *) tap_if->host_bridge)));
+ mp->host_mtu_size = htonl (tap_if->host_mtu_size);
+ mac_address_encode (&tap_if->host_mac_addr, mp->host_mac_addr);
+
+ if (tap_if->host_ip4_prefix_len)
+ ip4_address_encode (&tap_if->host_ip4_addr, mp->host_ip4_prefix.address);
+ mp->host_ip4_prefix.len = tap_if->host_ip4_prefix_len;
+ if (tap_if->host_ip6_prefix_len)
+ ip6_address_encode (&tap_if->host_ip6_addr, mp->host_ip6_prefix.address);
+ mp->host_ip6_prefix.len = tap_if->host_ip6_prefix_len;