From 90b7d4a0dcf83522e8dcd8999d3eeaf362182e7c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Apr 2023 20:10:01 +0200 Subject: [PATCH] Add more information in show session/tunnel --- cli.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli.c b/cli.c index e63d73e..e184e88 100644 --- a/cli.c +++ b/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, "\tCalled Num:\t%s", session[s].called); 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)); 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, "\tRemote IP:\t%s", fmtaddr(htonl(tunnel[t].ip), 0)); 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, "\tNext Recv:\t%u", tunnel[t].nr); cli_print(cli, "\tNext Send:\t%u", tunnel[t].ns);