diff options
author | Laurent Bigonville <bigon@bigon.be> | 2012-07-02 11:12:00 +0200 |
---|---|---|
committer | Laurent Bigonville <bigon@bigon.be> | 2012-07-02 16:33:33 +0200 |
commit | 29d31ea94d651377bc46e2c6f5d4bd86f4e3325b (patch) | |
tree | 541871598d6ae2189b7637401bc733cc31946f17 /debian/patches | |
parent | 9703a56bde42a8d9a181de0d931ef5c5dfefd7d9 (diff) | |
download | vyos-strongswan-29d31ea94d651377bc46e2c6f5d4bd86f4e3325b.tar.gz vyos-strongswan-29d31ea94d651377bc46e2c6f5d4bd86f4e3325b.zip |
d/p/03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch: NM now requires a tundev, pass the loopback interface to make it happy (thanks to Martin Willi)
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch | 28 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch b/debian/patches/03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch new file mode 100644 index 000000000..68cf1c3bf --- /dev/null +++ b/debian/patches/03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch @@ -0,0 +1,28 @@ +From 49e918021b16f2be8650f3aa24c464a829758b26 Mon Sep 17 00:00:00 2001 +From: Martin Willi <martin@revosec.ch> +Date: Mon, 25 Jun 2012 16:02:20 +0200 +Subject: [PATCH 2/2] Pass "lo" as faked tundev to NM, as it now needs a valid + interface since 0.9 + +--- + src/libcharon/plugins/nm/nm_service.c | 7 ++++--- + 1 files changed, 4 insertions(+), 3 deletions(-) + +--- a/src/libcharon/plugins/nm/nm_service.c ++++ b/src/libcharon/plugins/nm/nm_service.c +@@ -89,11 +89,12 @@ static void signal_ipv4_config(NMVPNPlug + 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); diff --git a/debian/patches/series b/debian/patches/series index e54d6535a..d4429019e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 01_fix-manpages.patch 02_add-LICENSE.patch +03_Pass-lo-as-faked-tundev-to-NM-as-it-now-needs-a-vali.patch |