cli: Also show remote tunnel id
This commit is contained in:
parent
1f1b8d7b99
commit
58e04d8f08
1 changed files with 1 additions and 0 deletions
1
cli.c
1
cli.c
|
|
@ -657,6 +657,7 @@ static int cmd_show_tunnels(struct cli_def *cli, const char *command, char **arg
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
cli_print(cli, "\r\nTunnel %d:", t);
|
cli_print(cli, "\r\nTunnel %d:", t);
|
||||||
|
cli_print(cli, "\tRemote ID:\t%d", tunnel[t].far);
|
||||||
cli_print(cli, "\tState:\t\t%s", states[tunnel[t].state]);
|
cli_print(cli, "\tState:\t\t%s", states[tunnel[t].state]);
|
||||||
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));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue