Add more information in show session/tunnel
This commit is contained in:
parent
b0a93e8809
commit
90b7d4a0dc
1 changed files with 3 additions and 0 deletions
3
cli.c
3
cli.c
|
|
@ -431,6 +431,7 @@ static int cmd_show_session(struct cli_def *cli, const char *command, char **arg
|
||||||
cli_print(cli, "\tCalling Num:\t%s", session[s].calling);
|
cli_print(cli, "\tCalling Num:\t%s", session[s].calling);
|
||||||
cli_print(cli, "\tCalled Num:\t%s", session[s].called);
|
cli_print(cli, "\tCalled Num:\t%s", session[s].called);
|
||||||
cli_print(cli, "\tTunnel ID:\t%d", session[s].tunnel);
|
cli_print(cli, "\tTunnel ID:\t%d", session[s].tunnel);
|
||||||
|
cli_print(cli, "\tRemote ID:\t%d", session[s].far);
|
||||||
cli_print(cli, "\tPPP Phase:\t%s", ppp_phase(session[s].ppp.phase));
|
cli_print(cli, "\tPPP Phase:\t%s", ppp_phase(session[s].ppp.phase));
|
||||||
switch (session[s].ppp.phase)
|
switch (session[s].ppp.phase)
|
||||||
{
|
{
|
||||||
|
|
@ -631,6 +632,8 @@ static int cmd_show_tunnels(struct cli_def *cli, const char *command, char **arg
|
||||||
cli_print(cli, "\tHostname:\t%s", tunnel[t].hostname[0] ? tunnel[t].hostname : "(none)");
|
cli_print(cli, "\tHostname:\t%s", tunnel[t].hostname[0] ? tunnel[t].hostname : "(none)");
|
||||||
cli_print(cli, "\tRemote IP:\t%s", fmtaddr(htonl(tunnel[t].ip), 0));
|
cli_print(cli, "\tRemote IP:\t%s", fmtaddr(htonl(tunnel[t].ip), 0));
|
||||||
cli_print(cli, "\tRemote Port:\t%d", tunnel[t].port);
|
cli_print(cli, "\tRemote Port:\t%d", tunnel[t].port);
|
||||||
|
cli_print(cli, "\tLocal UDP index:\t%d", tunnel[t].indexudp);
|
||||||
|
cli_print(cli, "\tRemote LNS:\t%d", tunnel[t].isremotelns);
|
||||||
cli_print(cli, "\tRx Window:\t%u", tunnel[t].window);
|
cli_print(cli, "\tRx Window:\t%u", tunnel[t].window);
|
||||||
cli_print(cli, "\tNext Recv:\t%u", tunnel[t].nr);
|
cli_print(cli, "\tNext Recv:\t%u", tunnel[t].nr);
|
||||||
cli_print(cli, "\tNext Send:\t%u", tunnel[t].ns);
|
cli_print(cli, "\tNext Send:\t%u", tunnel[t].ns);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue