Commit 0d2723f3 authored by Jean-Claude BAU's avatar Jean-Claude BAU

Adapt WR_MON tool to PPSI share memory changes

The main change comes from the protocol detection state.
parent 0d0c688e
Subproject commit 8240a87d850dd23b6f003d4f071d3c063c992c2e
Subproject commit 59838a0da9614036c95f8b11b0cd2de92750a507
......@@ -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->pdstate]);
} // else {
// term_cprintf(C_WHITE, " ");
// term_cprintf(C_CYAN, "|");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment