libosmo-sigtran  1.6.0.17-bd92
Osmocom SIGTRAN library
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
sccp_vty.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/command.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/misc.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include <osmocom/sigtran/protocol/mtp.h>
#include "xua_internal.h"
#include "sccp_internal.h"

Functions

static void show_user (struct vty *vty, struct osmo_sccp_user *user)
 
 DEFUN (show_sccp_users, show_sccp_users_cmd, "show cs7 instance <0-15> sccp users", SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Show List of SCCP Users registered\)
 
 DEFUN (show_sccp_user_ssn, show_sccp_user_ssn_cmd, "show cs7 instance <0-15> sccp ssn <0-65535>", SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Find an SCCP User registered for the given SSN\ "Subsystem Number(SSN)\")
 
 DEFUN (show_sccp_connections, show_sccp_connections_cmd, "show cs7 instance <0-15> sccp connections", SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Show List of active SCCP connections\)
 
 DEFUN_ATTR (sccp_timer, sccp_timer_cmd, NULL, NULL, CMD_ATTR_IMMEDIATE)
 
static const char * osmo_sccp_timer_val_name (const struct osmo_sccp_timer_val *val)
 
static void gen_sccp_timer_cmd_strs (struct cmd_element *cmd)
 
static void write_sccp_timers (struct vty *vty, const char *indent, struct osmo_sccp_instance *inst, bool default_if_unset)
 
void osmo_sccp_vty_write_cs7_node (struct vty *vty, const char *indent, struct osmo_sccp_instance *inst)
 
 DEFUN (show_sccp_timers, show_sccp_timers_cmd, "show cs7 instance <0-15> sccp timers", SHOW_STR CS7_STR INST_STR INST_STR "Signaling Connection Control Part\ "Show List of SCCP timers\")
 
void osmo_sccp_vty_init (void)
 

Function Documentation

◆ DEFUN() [1/4]

DEFUN ( show_sccp_users  ,
show_sccp_users_cmd  ,
"show cs7 instance <0-15> sccp users"  ,
SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Show List of SCCP Users registered\   
)

◆ DEFUN() [2/4]

DEFUN ( show_sccp_user_ssn  ,
show_sccp_user_ssn_cmd  ,
"show cs7 instance <0-15> sccp ssn <0-65535>"  ,
SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Find an SCCP User registered for the given SSN\ "Subsystem Number(SSN)\"   
)

◆ DEFUN() [3/4]

DEFUN ( show_sccp_connections  ,
show_sccp_connections_cmd  ,
"show cs7 instance <0-15> sccp connections"  ,
SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR "Show List of active SCCP connections\   
)

◆ DEFUN() [4/4]

DEFUN ( show_sccp_timers  ,
show_sccp_timers_cmd  ,
"show cs7 instance <0-15> sccp timers"  ,
SHOW_STR CS7_STR INST_STR INST_STR "Signaling Connection Control Part\ "Show List of SCCP timers\"   
)

◆ DEFUN_ATTR()

DEFUN_ATTR ( sccp_timer  ,
sccp_timer_cmd  ,
NULL  ,
NULL  ,
CMD_ATTR_IMMEDIATE   
)

◆ gen_sccp_timer_cmd_strs()

static void gen_sccp_timer_cmd_strs ( struct cmd_element *  cmd)
static

◆ osmo_sccp_timer_val_name()

static const char* osmo_sccp_timer_val_name ( const struct osmo_sccp_timer_val val)
static

◆ osmo_sccp_vty_init()

void osmo_sccp_vty_init ( void  )

◆ osmo_sccp_vty_write_cs7_node()

void osmo_sccp_vty_write_cs7_node ( struct vty *  vty,
const char *  indent,
struct osmo_sccp_instance inst 
)

References write_sccp_timers().

Referenced by write_one_cs7().

◆ show_user()

static void show_user ( struct vty *  vty,
struct osmo_sccp_user user 
)
static

◆ write_sccp_timers()

static void write_sccp_timers ( struct vty *  vty,
const char *  indent,
struct osmo_sccp_instance inst,
bool  default_if_unset 
)
static