Merge lp:~phablet-team/network-manager/lp1444162-wily into lp:~network-manager/network-manager/ubuntu

Proposed by Tony Espy
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 975
Merged at revision: 975
Proposed branch: lp:~phablet-team/network-manager/lp1444162-wily
Merge into: lp:~network-manager/network-manager/ubuntu
Diff against target: 76 lines (+50/-2)
3 files modified
debian/changelog (+4/-2)
debian/patches/lp1444162-add-ip6-config-to-nm-ofono-connections.patch (+44/-0)
debian/patches/series (+2/-0)
To merge this branch: bzr merge lp:~phablet-team/network-manager/lp1444162-wily
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+267832@code.launchpad.net

Description of the change

This change fixes NM's ofono setting plugin to add IP6_CONFIG_METHOD_IGNORE setting to ofono connections so that NM doesn't configure IPv6 for ofono connections.

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) :
review: Approve
Revision history for this message
Tony Espy (awe) wrote :

Tested on krillin / devel-proposed / #165.

Ran a subset of tests from:

https://wiki.ubuntu.com/Process/Merges/TestPlans/network-manager

Added new test case to verify the IPv6 is disabled for ofono connections, per the fix.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-08-11 18:10:47 +0000
3+++ debian/changelog 2015-08-12 15:36:08 +0000
4@@ -3,9 +3,11 @@
5 [ Tony Espy ]
6 * d/p/lp1425172-fix-wifi-scanlist-cull.patch: fix cull_scan_list
7 so that APs are removed when wpa_supplicant indicates that they've
8- been removed ( vs. waiting 6m to do so ).
9+ been removed vs. waiting 6m to do so ( LP: #1425172 ).
10+ * d/p/lp1444162-add-ip6-config-to-nm-ofono-connections.patch: disable
11+ IPv6 for ofono connections (LP: #1444162).
12
13- -- Tony Espy <espy@canonical.com> Fri, 07 Aug 2015 17:29:13 -0400
14+ -- Tony Espy <espy@canonical.com> Wed, 12 Aug 2015 11:22:01 -0400
15
16 network-manager (0.9.10.0-4ubuntu21) wily; urgency=medium
17
18
19=== added file 'debian/patches/lp1444162-add-ip6-config-to-nm-ofono-connections.patch'
20--- debian/patches/lp1444162-add-ip6-config-to-nm-ofono-connections.patch 1970-01-01 00:00:00 +0000
21+++ debian/patches/lp1444162-add-ip6-config-to-nm-ofono-connections.patch 2015-08-12 15:36:08 +0000
22@@ -0,0 +1,44 @@
23+Author: Tony Espy <espy@canonical.com>
24+Subject: Set IP6_CONFIG_METHOD_IGNORE for ofono connections
25+
26+This patch modifies the ofono settings plugin to add IP6_CONFIG
27+settings that contain an IP6_CONFIG_METHOD set to ignore indicate
28+to NM that IPv6 is not required. This fixes an issue with QNetwork
29+which incorrectly assumed that the ofono mobile data connection
30+support IPv6.
31+
32+Bug: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1444162
33+
34+Index: network-manager-0.9.10.0/src/settings/plugins/ofono/parser.c
35+===================================================================
36+--- network-manager-0.9.10.0.orig/src/settings/plugins/ofono/parser.c
37++++ network-manager-0.9.10.0/src/settings/plugins/ofono/parser.c
38+@@ -49,6 +49,7 @@ ofono_update_connection_from_context (NM
39+ {
40+ NMSettingConnection *s_con;
41+ NMSettingGsm *s_gsm;
42++ NMSettingIP6Config *s_ip6_config;
43+ gboolean success = FALSE;
44+ char *idstr = NULL;
45+ char *uuid_base = NULL;
46+@@ -89,6 +90,20 @@ ofono_update_connection_from_context (NM
47+ */
48+ g_object_set (s_gsm, NM_SETTING_GSM_NUMBER, "*99#", NULL);
49+
50++ /* IP6 setting */
51++ s_ip6_config = NM_SETTING_IP6_CONFIG (nm_setting_ip6_config_new());
52++ g_assert (s_ip6_config);
53++ nm_connection_add_setting (connection, NM_SETTING (s_ip6_config));
54++
55++ /*
56++ * Set IP6_CONFIG_METHOD to ignore to prevent NM from configuring IPv6
57++ * for ofono connections.
58++ */
59++ g_object_set (s_ip6_config,
60++ NM_SETTING_IP6_CONFIG_METHOD,
61++ NM_SETTING_IP6_CONFIG_METHOD_IGNORE,
62++ NULL);
63++
64+ nm_log_info (LOGD_SETTINGS, "SCPlugin-Ofono: "
65+ "update_connection_setting_from_context: name:%s, path:%s, id:%s, uuid: %s",
66+ (char *) g_hash_table_lookup (context, "Name"),
67
68=== modified file 'debian/patches/series'
69--- debian/patches/series 2015-08-07 21:40:51 +0000
70+++ debian/patches/series 2015-08-12 15:36:08 +0000
71@@ -79,3 +79,5 @@
72 git_route_fixes_part2_529591d8.patch
73 git_avoid_conflict_reinstall_dev_route_e439478c.patch
74 lp1425172-fix-wifi-scanlist-cull.patch
75+lp1444162-add-ip6-config-to-nm-ofono-connections.patch
76+

Subscribers

People subscribed via source and target branches