libosmo-sigtran 2.2.1.56-7580
Osmocom SIGTRAN library
ss7_vty.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <osmocom/vty/vty.h>
#include <osmocom/netif/stream.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "ss7_instance.h"

Go to the source code of this file.

Macros

#define CS7_STR   "ITU-T Signaling System 7\n"
 
#define PC_STR   "Point Code\n"
 
#define INST_STR   "An instance of the SS7 stack\n"
 
#define XUA_VAR_STR   "(sua|m3ua|ipa)"
 
#define XUA_VAR_HELP_STR
 
#define IPPROTO_VAR_STR   "(sctp|tcp)"
 
#define IPPROTO_VAR_HELP_STR
 
#define QOS_CLASS_RANGE_STR   "<0-7>"
 
#define QOS_CLASS_RANGE_HELP_STR   "QoS Class\n"
 
#define QOS_CLASS_VAR_STR   "(" QOS_CLASS_RANGE_STR "|default)"
 
#define QOS_CLASS_VAR_HELP_STR
 

Enumerations

enum  cs7_role_t { CS7_ROLE_SG , CS7_ROLE_ASP }
 

Functions

int parse_trans_proto (const char *protocol)
 
enum osmo_ss7_asp_protocol parse_asp_proto (const char *protocol)
 
void ss7_vty_init_node_asp (void)
 
void ss7_vty_write_one_asp (struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config)
 
int ss7_vty_node_asp_go_parent (struct vty *vty)
 
void ss7_vty_init_node_as (void)
 
void ss7_vty_write_one_as (struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config)
 
int ss7_vty_node_as_go_parent (struct vty *vty)
 
void ss7_vty_init_node_oxs (void)
 
void ss7_vty_init_show_oxs (void)
 
void ss7_vty_write_one_oxs (struct vty *vty, struct osmo_xua_server *xs)
 
int ss7_vty_node_oxs_go_parent (struct vty *vty)
 

Variables

void * g_ctx
 
enum cs7_role_t cs7_role
 
const struct value_string ipproto_vals []
 

Macro Definition Documentation

◆ CS7_STR

#define CS7_STR   "ITU-T Signaling System 7\n"

◆ INST_STR

#define INST_STR   "An instance of the SS7 stack\n"

◆ IPPROTO_VAR_HELP_STR

#define IPPROTO_VAR_HELP_STR
Value:
"SCTP (Stream Control Transmission Protocol)\n" \
"TCP (Transmission Control Protocol)\n"

◆ IPPROTO_VAR_STR

#define IPPROTO_VAR_STR   "(sctp|tcp)"

◆ PC_STR

#define PC_STR   "Point Code\n"

◆ QOS_CLASS_RANGE_HELP_STR

#define QOS_CLASS_RANGE_HELP_STR   "QoS Class\n"

◆ QOS_CLASS_RANGE_STR

#define QOS_CLASS_RANGE_STR   "<0-7>"

◆ QOS_CLASS_VAR_HELP_STR

#define QOS_CLASS_VAR_HELP_STR
Value:
"Default QoS Class (0)\n"
#define QOS_CLASS_RANGE_HELP_STR
Definition: ss7_vty.h:41

◆ QOS_CLASS_VAR_STR

#define QOS_CLASS_VAR_STR   "(" QOS_CLASS_RANGE_STR "|default)"

◆ XUA_VAR_HELP_STR

#define XUA_VAR_HELP_STR
Value:
"SCCP User Adaptation\n" \
"MTP3 User Adaptation\n" \
"IPA Multiplex (SCCP Lite)\n"

◆ XUA_VAR_STR

#define XUA_VAR_STR   "(sua|m3ua|ipa)"

Enumeration Type Documentation

◆ cs7_role_t

enum cs7_role_t
Enumerator
CS7_ROLE_SG 
CS7_ROLE_ASP 

Function Documentation

◆ parse_asp_proto()

enum osmo_ss7_asp_protocol parse_asp_proto ( const char *  protocol)

References osmo_ss7_asp_protocol_vals.

Referenced by DEFUN(), and DEFUN_ATTR().

◆ parse_trans_proto()

int parse_trans_proto ( const char *  protocol)

References ipproto_vals.

Referenced by DEFUN(), and DEFUN_ATTR().

◆ ss7_vty_init_node_as()

void ss7_vty_init_node_as ( void  )

References as_node, cs7_role, CS7_ROLE_SG, and NULL.

Referenced by vty_init_shared().

◆ ss7_vty_init_node_asp()

void ss7_vty_init_node_asp ( void  )

◆ ss7_vty_init_node_oxs()

void ss7_vty_init_node_oxs ( void  )

References NULL, and xua_node.

Referenced by vty_init_shared().

◆ ss7_vty_init_show_oxs()

void ss7_vty_init_show_oxs ( void  )

Referenced by vty_init_shared().

◆ ss7_vty_node_as_go_parent()

◆ ss7_vty_node_asp_go_parent()

◆ ss7_vty_node_oxs_go_parent()

int ss7_vty_node_oxs_go_parent ( struct vty *  vty)

◆ ss7_vty_write_one_as()

◆ ss7_vty_write_one_asp()

void ss7_vty_write_one_asp ( struct vty *  vty,
struct osmo_ss7_asp asp,
bool  show_dyn_config 
)

References osmo_ss7_asp::adm_state, asp_quirk_names, osmo_ss7_asp::cfg, osmo_ss7_asp::daud_act, osmo_ss7_asp::description, osmo_ss7_asp::dyn_allocated, osmo_ss7_asp_peer::host, osmo_ss7_asp_peer::host_cnt, osmo_ss7_asp_peer::idx_primary, ipproto_vals, osmo_ss7_asp::is_server, osmo_ss7_asp::keepalive_enable, osmo_ss7_asp::keepalive_intvl_present, osmo_ss7_asp::keepalive_intvl_value, osmo_ss7_asp::keepalive_probes_present, osmo_ss7_asp::keepalive_probes_value, osmo_ss7_asp::keepalive_time_present, osmo_ss7_asp::keepalive_time_value, osmo_ss7_asp::local, osmo_ss7_asp::local_asp_id, osmo_ss7_asp::local_asp_id_present, osmo_ss7_asp::max_attempts_present, osmo_ss7_asp::max_attempts_value, osmo_ss7_asp::max_init_timeo_present, osmo_ss7_asp::max_init_timeo_value, osmo_ss7_asp::max_instreams_present, osmo_ss7_asp::max_instreams_value, osmo_ss7_asp::name, osmo_ss7_asp::num_ostreams_present, osmo_ss7_asp::num_ostreams_value, OSMO_SS7_ASP_ADM_S_BLOCKED, OSMO_SS7_ASP_ADM_S_ENABLED, OSMO_SS7_ASP_ADM_S_SHUTDOWN, osmo_ss7_asp_protocol_name(), osmo_ss7_asp_role_names, osmo_ss7_asp_peer::port, osmo_ss7_asp::proto, osmo_ss7_asp::qos_class, osmo_ss7_asp::quirks, osmo_ss7_asp::remote, osmo_ss7_asp::role, osmo_ss7_asp::sctp_init, osmo_ss7_asp::simple_client_allocated, ss7_default_trans_proto_for_asp_proto(), osmo_ss7_asp::tcp, osmo_ss7_asp::trans_proto, osmo_ss7_asp::user_timeout_present, osmo_ss7_asp::user_timeout_value, write_asp_timers_lm(), and write_asp_timers_xua().

Referenced by write_one_cs7().

◆ ss7_vty_write_one_oxs()

Variable Documentation

◆ cs7_role

◆ g_ctx

void* g_ctx
extern

◆ ipproto_vals

const struct value_string ipproto_vals[]
extern