build: add default ignore network interface prefix
authorStefan Becker <chemobejk@gmail.com>
Thu, 27 Jun 2019 10:33:25 +0000 (13:33 +0300)
committerStefan Becker <chemobejk@gmail.com>
Thu, 27 Jun 2019 16:52:31 +0000 (19:52 +0300)
By default libnice now ignores network interfaces from virtual machines
and containers, i.e. names that start with "docker", "veth", "virbr" and
"vnet".

If you want to disable this feature override the default with

       ./configure --without-ignored-network-interface-prefix ...
       ./configure --with-ignored-network-interface-prefix= ...
       meson setup -D ignored-network-interface-prefix= ...
       meson setup -D ignored-network-interface-prefix=[] ...

configure.ac
meson_options.txt

index 42d1fe9..c1367c4 100644 (file)
@@ -402,7 +402,8 @@ AC_ARG_WITH([ignored-network-interface-prefix],
     [Ignore network interfaces whose name starts with a string from this list in the ICE connection
      check algorithm. For example, interfaces "virbr" in the case of the virtual bridge
      handled by libvirtd, do not help in finding connectivity.])],
-    [interface_prefix="$withval"])
+    [interface_prefix="$withval"],
+    [interface_prefix="docker,veth,virbr,vnet"])
 AS_IF([test -n "$interface_prefix" && test "x$interface_prefix" != "xno"],
   [[interface_prefix_list=`echo $interface_prefix | sed 's/,/","/g'`]
    AC_DEFINE_UNQUOTED([IGNORED_IFACE_PREFIX],["$interface_prefix_list"],
index 9f9f7d6..cd980cb 100644 (file)
@@ -2,7 +2,7 @@ option('gupnp', type: 'feature', value: 'auto',
   description: 'Enable or disable GUPnP IGD support')
 option('gstreamer', type: 'feature', value: 'auto',
   description: 'Enable or disable build of GStreamer plugins')
-option('ignored-network-interface-prefix', type: 'array', value: [],
+option('ignored-network-interface-prefix', type: 'array', value: ['docker', 'veth', 'virbr', 'vnet'],
   description: 'Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, "virbr" to ignore virtual bridge interfaces added by virtd, which do not help in finding connectivity.')
 option('crypto-library', type: 'combo', choices : ['auto', 'gnutls', 'openssl'], value : 'auto')