mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 13:33:29 +00:00
nat: Make sccp/bsc show connections more Cisco like...
Second attempt to use a syntax more comparable to 'Cisco', I have never used such a system... let us see how this is going.
This commit is contained in:
@@ -81,8 +81,8 @@ static int config_write_bsc(struct vty *vty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DEFUN(show_sccp, show_sccp_cmd, "sccp connections show",
|
DEFUN(show_sccp, show_sccp_cmd, "show sccp connections",
|
||||||
"Display information about current SCCP connections")
|
SHOW_STR "Display information about current SCCP connections")
|
||||||
{
|
{
|
||||||
struct sccp_connections *con;
|
struct sccp_connections *con;
|
||||||
llist_for_each_entry(con, &_nat->sccp_connections, list_entry) {
|
llist_for_each_entry(con, &_nat->sccp_connections, list_entry) {
|
||||||
@@ -98,8 +98,8 @@ DEFUN(show_sccp, show_sccp_cmd, "sccp connections show",
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFUN(show_bsc, show_bsc_cmd, "bsc connections show",
|
DEFUN(show_bsc, show_bsc_cmd, "show bsc connections",
|
||||||
"Display information about current BSCs")
|
SHOW_STR "Display information about current BSCs")
|
||||||
{
|
{
|
||||||
struct bsc_connection *con;
|
struct bsc_connection *con;
|
||||||
struct sockaddr_in sock;
|
struct sockaddr_in sock;
|
||||||
|
|||||||
Reference in New Issue
Block a user