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
0d2723f3
Commit
0d2723f3
authored
May 09, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt WR_MON tool to PPSI share memory changes
The main change comes from the protocol detection state.
parent
0d0c688e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
ppsi
userspace/ppsi
+1
-1
wr_mon.c
userspace/tools/wr_mon.c
+6
-7
No files found.
ppsi
@
59838a0d
Subproject commit
8240a87d850dd23b6f003d4f071d3c063c992c2e
Subproject commit
59838a0da9614036c95f8b11b0cd2de92750a507
userspace/tools/wr_mon.c
View file @
0d2723f3
...
...
@@ -194,13 +194,12 @@ static char * wr_instance_extension_state[]={
#endif
static
char
*
prot_
link
_state_name
[]
=
{
static
char
*
prot_
detection
_state_name
[]
=
{
"NONE "
,
/* No meaning. No extension present */
"PDETECT"
,
/* Checking if the peer instance is using the same protocol */
"IN_PROG"
,
/* Right protocol detected. Try to establish the link with peer instance */
"LINKED "
,
/* Link with peer well established */
"PERROR "
,
/* Problem detected by the extension */
"FAILURE"
/* Impossible to connect correctly to a peer instance */
"WA_MSG "
,
/* Waiting first message */
"PD_IPRG"
,
/* Protocol detection */
"PD_OK "
,
/* Protocol detected */
"FAILURE"
/* Protocol not detected */
};
/* prototypes */
...
...
@@ -691,7 +690,7 @@ void show_ports(int hal_alive, int ppsi_alive)
}
#endif
}
term_cprintf
(
C_GREEN
,
"%s/%s"
,
extension_state_name
,
prot_
link_state_name
[
ppi
->
link_
state
]);
term_cprintf
(
C_GREEN
,
"%s/%s"
,
extension_state_name
,
prot_
detection_state_name
[
ppi
->
pd
state
]);
}
// else {
// term_cprintf(C_WHITE, " ");
// term_cprintf(C_CYAN, "|");
...
...
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