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
87e79c83
Commit
87e79c83
authored
Apr 29, 2013
by
Maciej Lipinski
Committed by
Alessandro Rubini
May 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RTU] adding FID info into rtu_stat tool
parent
3332a33a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
rtu_stat.c
userspace/tools/rtu_stat.c
+8
-7
rtud_exports.c
userspace/wrsw_rtud/rtud_exports.c
+1
-0
rtud_exports.h
userspace/wrsw_rtud/rtud_exports.h
+1
-0
No files found.
userspace/tools/rtu_stat.c
View file @
87e79c83
...
...
@@ -194,19 +194,20 @@ int main(int argc, char **argv)
printf
(
"RTU Filtering Database Dump: %d rules
\n
"
,
n_entries
);
printf
(
"
\n
"
);
printf
(
"MAC
Dst.ports Type
Age [s]
\n
"
);
printf
(
"MAC
Dst.ports FID Type
Age [s]
\n
"
);
printf
(
"----------------------------------------------------------------------------------
\n
"
);
char
mac_buf
[
ETH_ALEN_STR
];
for
(
i
=
0
;
i
<
n_entries
;
i
++
)
{
printf
(
"%-25s %-22s %s (hash %03x:%x) "
,
mac_to_buffer
(
fd_list
[
i
].
mac
,
mac_buf
),
decode_ports
(
fd_list
[
i
].
dpm
),
fd_list
[
i
].
dynamic
?
"DYNAMIC"
:
"STATIC "
,
fd_list
[
i
].
hash
,
fd_list
[
i
].
bucket
);
printf
(
"%-25s %-12s %2d %s (hash %03x:%x) "
,
mac_to_buffer
(
fd_list
[
i
].
mac
,
mac_buf
),
decode_ports
(
fd_list
[
i
].
dpm
),
fd_list
[
i
].
fid
,
fd_list
[
i
].
dynamic
?
"DYNAMIC"
:
"STATIC "
,
fd_list
[
i
].
hash
,
fd_list
[
i
].
bucket
);
if
(
fd_list
[
i
].
dynamic
)
printf
(
"%d
\n
"
,
fd_list
[
i
].
age
);
else
...
...
userspace/wrsw_rtud/rtud_exports.c
View file @
87e79c83
...
...
@@ -77,6 +77,7 @@ int rtudexp_get_fd_list(const struct minipc_pd *pd,
list
->
list
[
i
].
hash
=
ent
->
addr
.
hash
;
list
->
list
[
i
].
bucket
=
ent
->
addr
.
bucket
;
list
->
list
[
i
].
age
=
ent
->
age
;
list
->
list
[
i
].
fid
=
ent
->
fid
;
}
list
->
num_rules
=
i
;
...
...
userspace/wrsw_rtud/rtud_exports.h
View file @
87e79c83
...
...
@@ -42,6 +42,7 @@ typedef struct
uint16_t
hash
;
int
bucket
;
int
age
;
int
fid
;
}
rtudexp_fd_entry_t
;
typedef
struct
{
...
...
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