Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
da60d031
Commit
da60d031
authored
Mar 02, 2016
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
05d4f64d
e8977766
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ip/ipl2tp.c
ip/ipl2tp.c
+3
-5
No files found.
ip/ipl2tp.c
View file @
da60d031
...
@@ -720,6 +720,9 @@ static int do_show(int argc, char **argv)
...
@@ -720,6 +720,9 @@ static int do_show(int argc, char **argv)
int
do_ipl2tp
(
int
argc
,
char
**
argv
)
int
do_ipl2tp
(
int
argc
,
char
**
argv
)
{
{
if
(
argc
<
1
||
!
matches
(
*
argv
,
"help"
))
usage
();
if
(
genl_family
<
0
)
{
if
(
genl_family
<
0
)
{
if
(
rtnl_open_byproto
(
&
genl_rth
,
0
,
NETLINK_GENERIC
)
<
0
)
{
if
(
rtnl_open_byproto
(
&
genl_rth
,
0
,
NETLINK_GENERIC
)
<
0
)
{
fprintf
(
stderr
,
"Cannot open generic netlink socket
\n
"
);
fprintf
(
stderr
,
"Cannot open generic netlink socket
\n
"
);
...
@@ -731,9 +734,6 @@ int do_ipl2tp(int argc, char **argv)
...
@@ -731,9 +734,6 @@ int do_ipl2tp(int argc, char **argv)
exit
(
1
);
exit
(
1
);
}
}
if
(
argc
<
1
)
usage
();
if
(
matches
(
*
argv
,
"add"
)
==
0
)
if
(
matches
(
*
argv
,
"add"
)
==
0
)
return
do_add
(
argc
-
1
,
argv
+
1
);
return
do_add
(
argc
-
1
,
argv
+
1
);
if
(
matches
(
*
argv
,
"delete"
)
==
0
)
if
(
matches
(
*
argv
,
"delete"
)
==
0
)
...
@@ -742,8 +742,6 @@ int do_ipl2tp(int argc, char **argv)
...
@@ -742,8 +742,6 @@ int do_ipl2tp(int argc, char **argv)
matches
(
*
argv
,
"lst"
)
==
0
||
matches
(
*
argv
,
"lst"
)
==
0
||
matches
(
*
argv
,
"list"
)
==
0
)
matches
(
*
argv
,
"list"
)
==
0
)
return
do_show
(
argc
-
1
,
argv
+
1
);
return
do_show
(
argc
-
1
,
argv
+
1
);
if
(
matches
(
*
argv
,
"help"
)
==
0
)
usage
();
fprintf
(
stderr
,
"Command
\"
%s
\"
is unknown, try
\"
ip l2tp help
\"
.
\n
"
,
*
argv
);
fprintf
(
stderr
,
"Command
\"
%s
\"
is unknown, try
\"
ip l2tp help
\"
.
\n
"
,
*
argv
);
exit
(
-
1
);
exit
(
-
1
);
...
...
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