util_dep = cc.find_library('util', required: false)
-if not get_option('virtualport').disabled()
- if cc.has_header_symbol('linux/if_link.h', 'IFLA_PORT_MAX')
- conf.set('WITH_VIRTUALPORT', 1)
- elif get_option('virtualport').enabled()
- error('Installed linux headers don\'t show support for virtual port support.')
- endif
-endif
-
if host_machine.system() == 'windows'
ole32_dep = cc.find_library('ole32')
oleaut32_dep = cc.find_library('oleaut32')
option('selinux', type: 'feature', value: 'auto', description: 'selinux support')
option('selinux_mount', type: 'string', value: '', description: 'set SELinux mount point')
option('udev', type: 'feature', value: 'auto', description: 'udev support')
-option('virtualport', type: 'feature', value: 'auto', description: 'enable virtual port support')
option('wireshark_dissector', type: 'feature', value: 'auto', description: 'wireshark support')
option('wireshark_plugindir', type: 'string', value: '', description: 'wireshark plugins directory for use when installing wireshark plugin')
option('yajl', type: 'feature', value: 'auto', description: 'yajl support')
"no-op",
);
-#if WITH_VIRTUALPORT
+#if defined(WITH_LIBNL)
# include <fcntl.h>
}
-#if WITH_VIRTUALPORT
+#if defined(WITH_LIBNL)
static struct nla_policy ifla_port_policy[IFLA_PORT_MAX + 1] =
{
return rc;
}
-#else /* ! WITH_VIRTUALPORT */
+#else /* !WITH_LIBNL */
int virNetDevVPortProfileAssociate(const char *macvtap_ifname G_GNUC_UNUSED,
const virNetDevVPortProfile *virtPort G_GNUC_UNUSED,
const virMacAddr *macvtap_macaddr G_GNUC_UNUSED,
_("Virtual port profile association not supported on this platform"));
return -1;
}
-#endif /* ! WITH_VIRTUALPORT */
+#endif /* !WITH_LIBNL */
#endif
#ifdef WITH_NWFILTER
vshPrint(ctl, " Nwfilter");
-#endif
-#ifdef WITH_VIRTUALPORT
- vshPrint(ctl, " VirtualPort");
#endif
vshPrint(ctl, "\n");