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
dd4c8d49
Commit
dd4c8d49
authored
Jan 15, 2011
by
Alexey Torkhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using l2tpd_* names instead of pppd_* where neccessary.
parent
725bd45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
nm-l2tp-service.c
src/nm-l2tp-service.c
+6
-6
No files found.
src/nm-l2tp-service.c
View file @
dd4c8d49
...
...
@@ -557,7 +557,7 @@ nm_l2tp_secrets_validate (NMSettingVPN *s_vpn, GError **error)
}
static
void
pp
pd_watch_cb
(
GPid
pid
,
gint
status
,
gpointer
user_data
)
l2t
pd_watch_cb
(
GPid
pid
,
gint
status
,
gpointer
user_data
)
{
NML2tpPlugin
*
plugin
=
NM_L2TP_PLUGIN
(
user_data
);
NML2tpPluginPrivate
*
priv
=
NM_L2TP_PLUGIN_GET_PRIVATE
(
plugin
);
...
...
@@ -566,14 +566,14 @@ pppd_watch_cb (GPid pid, gint status, gpointer user_data)
if
(
WIFEXITED
(
status
))
{
error
=
WEXITSTATUS
(
status
);
if
(
error
!=
0
)
nm_warning
(
"
pp
pd exited with error code %d"
,
error
);
nm_warning
(
"
xl2t
pd exited with error code %d"
,
error
);
}
else
if
(
WIFSTOPPED
(
status
))
nm_warning
(
"
pp
pd stopped unexpectedly with signal %d"
,
WSTOPSIG
(
status
));
nm_warning
(
"
xl2t
pd stopped unexpectedly with signal %d"
,
WSTOPSIG
(
status
));
else
if
(
WIFSIGNALED
(
status
))
nm_warning
(
"
pp
pd died with signal %d"
,
WTERMSIG
(
status
));
nm_warning
(
"
xl2t
pd died with signal %d"
,
WTERMSIG
(
status
));
else
nm_warning
(
"
pp
pd died from an unknown cause"
);
nm_warning
(
"
xl2t
pd died from an unknown cause"
);
/* Reap child if needed. */
waitpid
(
priv
->
pid
,
NULL
,
WNOHANG
);
...
...
@@ -853,7 +853,7 @@ nm_l2tp_start_l2tpd_binary (NML2tpPlugin *plugin,
nm_info
(
"xl2tpd started with pid %d"
,
pid
);
NM_L2TP_PLUGIN_GET_PRIVATE
(
plugin
)
->
pid
=
pid
;
g_child_watch_add
(
pid
,
pp
pd_watch_cb
,
plugin
);
g_child_watch_add
(
pid
,
l2t
pd_watch_cb
,
plugin
);
priv
->
ppp_timeout_handler
=
g_timeout_add
(
NM_L2TP_WAIT_PPPD
,
pppd_timed_out
,
plugin
);
...
...
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