diff --git a/cli.c b/cli.c index e3cea88..5f8190e 100644 --- a/cli.c +++ b/cli.c @@ -731,11 +731,12 @@ static int cmd_show_tunnels(struct cli_def *cli, const char *command, char **arg } // Show tunnel summary - cli_print(cli, "%4s %20s %20s %6s %s", + cli_print(cli, "%4s %20s %15s %6s %5s %s", "TID", "Hostname", "IP", "State", + "Queue", "Sessions"); for (i = 1; i < MAXTUNNEL; i++) @@ -744,11 +745,12 @@ static int cmd_show_tunnels(struct cli_def *cli, const char *command, char **arg if (!show_all && (!tunnel[i].ip || tunnel[i].die)) continue; for (x = 0; x < MAXSESSION; x++) if (session[x].tunnel == i && session[x].opened && !session[x].die) sessions++; - cli_print(cli, "%4d %20s %20s %6s %6d %s", + cli_print(cli, "%4d %20s %15s %6s %5d %6d %s", i, *tunnel[i].hostname ? tunnel[i].hostname : "(null)", fmtaddr(htonl(tunnel[i].ip), 0), states[tunnel[i].state], + tunnel[i].controlc, sessions ,(i == TUNNEL_ID_PPPOE)?"Tunnel pppoe":(tunnel[i].isremotelns?"Tunnel To Remote LNS":"Tunnel To LAC") );