Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetworkManager-l2tp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CeRiAl
NetworkManager-l2tp
Commits
94395441
Commit
94395441
authored
Mar 05, 2012
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can import VPN connection name
parent
cbdd0adf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
import-export.c
properties/import-export.c
+7
-1
No files found.
properties/import-export.c
View file @
94395441
...
...
@@ -126,6 +126,7 @@ do_import (const char *path, GError **error)
NMSettingIP4Config
*
s_ip4
;
GKeyFile
*
keyfile
;
char
*
value
;
int
i
;
keyfile
=
g_key_file_new
();
...
...
@@ -150,11 +151,16 @@ do_import (const char *path, GError **error)
/* g_message("Start importing L2TP."); */
value
=
g_key_file_get_string
(
keyfile
,
CONN_SECTION
,
"id"
,
error
);
g_object_set
(
G_OBJECT
(
s_con
),
NM_SETTING_CONNECTION_ID
,
value
,
NULL
);
g_free
(
value
);
for
(
i
=
0
;
vpn_properties
[
i
].
name
;
i
++
){
VpnImportExportProperty
prop
=
vpn_properties
[
i
];
int
int_val
;
gboolean
bool_val
;
char
*
value
;
if
(
!
g_key_file_has_key
(
keyfile
,
VPN_SECTION
,
prop
.
name
,
error
)){
if
(
!
prop
.
required
)
...
...
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