From: Martin Willi Date: Fri, 29 Jun 2012 13:21:57 +0000 (+0200) Subject: Pass "lo" as faked tundev to NM, as it now needs a valid interface since 0.9 X-Git-Tag: 5.0.0~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d12635c77d6de6bc10e90d076e6b75350e3f5fc2;p=thirdparty%2Fstrongswan.git Pass "lo" as faked tundev to NM, as it now needs a valid interface since 0.9 --- diff --git a/src/charon-nm/nm/nm_service.c b/src/charon-nm/nm/nm_service.c index d6ecd20a5e..86d293d972 100644 --- a/src/charon-nm/nm/nm_service.c +++ b/src/charon-nm/nm/nm_service.c @@ -89,11 +89,12 @@ static void signal_ipv4_config(NMVPNPlugin *plugin, me = ike_sa->get_my_host(ike_sa); handler = NM_STRONGSWAN_PLUGIN_GET_PRIVATE(plugin)->handler; - /* NM requires a tundev, but netkey does not use one. Passing an invalid - * iface makes NM complain, but it accepts it without fiddling on eth0. */ + /* NM requires a tundev, but netkey does not use one. Passing the physical + * interface does not work, as NM fiddles around with it. Passing the + * loopback seems to work, though... */ val = g_slice_new0 (GValue); g_value_init (val, G_TYPE_STRING); - g_value_set_string (val, "none"); + g_value_set_string (val, "lo"); g_hash_table_insert (config, NM_VPN_PLUGIN_IP4_CONFIG_TUNDEV, val); val = g_slice_new0(GValue);