Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
1345ad25
Commit
1345ad25
authored
Dec 07, 2016
by
Grzegorz Daniluk
Committed by
Adam Wujek
Dec 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/rtu_stat: fix printouts to match the enable/disable logic
parent
73f675fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rtu_stat.c
userspace/tools/rtu_stat.c
+7
-7
No files found.
userspace/tools/rtu_stat.c
View file @
1345ad25
...
@@ -158,13 +158,13 @@ void show_help(char *prgname)
...
@@ -158,13 +158,13 @@ void show_help(char *prgname)
" ports
\n
"
);
" ports
\n
"
);
fprintf
(
stderr
,
" learning <enable|disable> mask <port_mask>: Enable/disable learning process
\n
"
fprintf
(
stderr
,
" learning <enable|disable> mask <port_mask>: Enable/disable learning process
\n
"
" in RTU for ports given as a mask
\n
"
);
" in RTU for ports given as a mask
\n
"
);
fprintf
(
stderr
,
" unrec: Status of
dropping frames when destination MAC is not
\n
"
fprintf
(
stderr
,
" unrec: Status of
broadcasting/dropping frames when destination MAC
\n
"
" matched
\n
"
);
"
is not
matched
\n
"
);
fprintf
(
stderr
,
" unrec <enable|disable> [<port>]: Enable/disable
dropp
ing frames when
\n
"
fprintf
(
stderr
,
" unrec <enable|disable> [<port>]: Enable/disable
broadcast
ing frames when
\n
"
" the destination MAC is not matched.
\n
"
" the destination MAC is not matched.
\n
"
" Apply setting on a given <port> or all ports
\n
"
" Apply setting on a given <port> or all ports
\n
"
" when <port> is not provided.
\n
"
);
" when <port> is not provided.
\n
"
);
fprintf
(
stderr
,
" unrec mask <enable|disable> <port_mask>: Enable/disable
dropp
ing frames when
\n
"
fprintf
(
stderr
,
" unrec mask <enable|disable> <port_mask>: Enable/disable
broadcast
ing frames when
\n
"
" the destination MAC is not matched.
\n
"
" the destination MAC is not matched.
\n
"
" Apply setting on ports given as a mask
\n
"
);
" Apply setting on ports given as a mask
\n
"
);
fprintf
(
stderr
,
" vlan <vid> <fid> <port_mask> [<drop>, <prio>, <has_prio>, <prio_override>]:
\n
"
fprintf
(
stderr
,
" vlan <vid> <fid> <port_mask> [<drop>, <prio>, <has_prio>, <prio_override>]:
\n
"
...
@@ -771,9 +771,9 @@ int main(int argc, char **argv)
...
@@ -771,9 +771,9 @@ int main(int argc, char **argv)
}
}
printf
(
"Dropping frames when the destination MAC is not "
printf
(
"Dropping frames when the destination MAC is not "
"matched
\n
"
);
"matched
\n
"
);
printf
(
"-------------
\n
"
);
printf
(
"-------------
---------
\n
"
);
printf
(
"Port |
Drop
\n
"
);
printf
(
"Port |
Unrec broadcast
\n
"
);
printf
(
"-------------
\n
"
);
printf
(
"-------------
---------
\n
"
);
for
(
i
=
0
;
i
<
nports
;
i
++
)
{
for
(
i
=
0
;
i
<
nports
;
i
++
)
{
printf
(
" %2d %s
\n
"
,
i
+
1
,
printf
(
" %2d %s
\n
"
,
i
+
1
,
(
ret
&
1
)
?
"enabled"
:
"disabled"
);
(
ret
&
1
)
?
"enabled"
:
"disabled"
);
...
...
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