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
9ca23a59
Commit
9ca23a59
authored
Feb 05, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
a2f7934d
82a307e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ip/iplink_can.c
ip/iplink_can.c
+6
-0
No files found.
ip/iplink_can.c
View file @
9ca23a59
...
...
@@ -37,6 +37,7 @@ static void print_usage(FILE *f)
"
\t
[ one-shot { on | off } ]
\n
"
"
\t
[ berr-reporting { on | off } ]
\n
"
"
\t
[ fd { on | off } ]
\n
"
"
\t
[ fd-non-iso { on | off } ]
\n
"
"
\t
[ presume-ack { on | off } ]
\n
"
"
\n
"
"
\t
[ restart-ms TIME-MS ]
\n
"
...
...
@@ -100,6 +101,7 @@ static void print_ctrlmode(FILE *f, __u32 cm)
_PF
(
CAN_CTRLMODE_ONE_SHOT
,
"ONE-SHOT"
);
_PF
(
CAN_CTRLMODE_BERR_REPORTING
,
"BERR-REPORTING"
);
_PF
(
CAN_CTRLMODE_FD
,
"FD"
);
_PF
(
CAN_CTRLMODE_FD_NON_ISO
,
"FD-NON-ISO"
);
_PF
(
CAN_CTRLMODE_PRESUME_ACK
,
"PRESUME-ACK"
);
#undef _PF
if
(
cm
)
...
...
@@ -203,6 +205,10 @@ static int can_parse_opt(struct link_util *lu, int argc, char **argv,
NEXT_ARG
();
set_ctrlmode
(
"fd"
,
*
argv
,
&
cm
,
CAN_CTRLMODE_FD
);
}
else
if
(
matches
(
*
argv
,
"fd-non-iso"
)
==
0
)
{
NEXT_ARG
();
set_ctrlmode
(
"fd-non-iso"
,
*
argv
,
&
cm
,
CAN_CTRLMODE_FD_NON_ISO
);
}
else
if
(
matches
(
*
argv
,
"presume-ack"
)
==
0
)
{
NEXT_ARG
();
set_ctrlmode
(
"presume-ack"
,
*
argv
,
&
cm
,
...
...
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