Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
network-manager-applet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
network-manager-applet
Commits
1524f5e4
Commit
1524f5e4
authored
Nov 09, 2016
by
Lubomir Rintel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editor/ip6: allow method=shared
NetworkManager supports it now.
parent
6c5e2ac3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
src/connection-editor/ce-page.h
src/connection-editor/ce-page.h
+1
-2
src/connection-editor/page-ip6.c
src/connection-editor/page-ip6.c
+13
-4
No files found.
src/connection-editor/ce-page.h
View file @
1524f5e4
...
...
@@ -116,8 +116,7 @@ typedef CEPage* (*CEPageNewFunc)(NMConnectionEditor *editor,
#define CE_TOOLTIP_ADDR_SHARED _("The IP address identify your computer on the network and " \
"determines the address range distributed to other computers. " \
"Click the “Add” button to add an IP address. "\
"If no address is provided, one in the 10.42.x.x range will " \
"be used.")
"If no address is provided, range will be determined automatically.")
#define CE_LABEL_ADDR_AUTO _("Additional static addresses")
#define CE_LABEL_ADDR_MANUAL _("Addresses")
...
...
src/connection-editor/page-ip6.c
View file @
1524f5e4
...
...
@@ -204,7 +204,7 @@ ip6_private_init (CEPageIP6 *self, NMConnection *connection)
gtk_list_store_set
(
priv
->
method_store
,
&
iter
,
METHOD_COL_NAME
,
_
(
"Shared to other computers"
),
METHOD_COL_NUM
,
IP6_METHOD_SHARED
,
METHOD_COL_ENABLED
,
FALS
E
,
METHOD_COL_ENABLED
,
TRU
E
,
-
1
);
}
...
...
@@ -283,6 +283,11 @@ method_changed (GtkComboBox *combo, gpointer user_data)
tooltip
=
CE_TOOLTIP_ADDR_MANUAL
;
label
=
CE_LABEL_ADDR_MANUAL
;
break
;
case
IP6_METHOD_SHARED
:
addr_enabled
=
dns_enabled
=
routes_enabled
=
TRUE
;
tooltip
=
CE_TOOLTIP_ADDR_SHARED
;
label
=
CE_LABEL_ADDR_SHARED
;
break
;
case
IP6_METHOD_IGNORE
:
ip6_required_enabled
=
FALSE
;
break
;
...
...
@@ -1446,10 +1451,14 @@ change_method_combo (CEPage *page, gboolean is_hotspot)
/* Set active method */
if
(
is_hotspot
)
{
if
(
priv
->
hotspot_method_idx
!=
-
1
)
if
(
priv
->
hotspot_method_idx
==
-
1
)
{
int
method
=
IP6_METHOD_SHARED
;
if
(
g_strcmp0
(
nm_setting_ip_config_get_method
(
priv
->
setting
),
NM_SETTING_IP6_CONFIG_METHOD_IGNORE
)
==
0
)
method
=
IP6_METHOD_IGNORE
;
gtk_combo_box_set_active
(
priv
->
method
,
method
);
}
else
gtk_combo_box_set_active
(
priv
->
method
,
priv
->
hotspot_method_idx
);
else
gtk_combo_box_set_active
(
priv
->
method
,
IP6_METHOD_IGNORE
);
}
else
{
if
(
priv
->
normal_method_idx
!=
-
1
)
gtk_combo_box_set_active
(
priv
->
method
,
priv
->
normal_method_idx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment