libosmo-sigtran 2.2.1
Osmocom SIGTRAN library
Loading...
Searching...
No Matches
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

◆ 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"

Referenced by ALIAS_ATTR(), DEFUN(), DEFUN_ATTR(), and DEFUN_ATTR().

◆ IPPROTO_VAR_STR

#define IPPROTO_VAR_STR   "(sctp|tcp)"

◆ PC_STR

#define PC_STR   "Point Code\n"

Referenced by DEFUN_ATTR(), DEFUN_ATTR(), and DEFUN_ATTR().

◆ QOS_CLASS_RANGE_HELP_STR

#define QOS_CLASS_RANGE_HELP_STR   "QoS Class\n"

Referenced by DEFUN_ATTR(), and DEFUN_ATTR().

◆ QOS_CLASS_RANGE_STR

#define QOS_CLASS_RANGE_STR   "<0-7>"

Referenced by DEFUN_ATTR(), and DEFUN_ATTR().

◆ 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

Referenced by DEFUN_ATTR().

◆ QOS_CLASS_VAR_STR

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

Referenced by DEFUN_ATTR().

◆ XUA_VAR_HELP_STR

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

Referenced by ALIAS_ATTR(), DEFUN_ATTR(), DEFUN_ATTR(), DEFUN_ATTR(), and DEFUN_ATTR().

◆ 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)

◆ parse_trans_proto()

int parse_trans_proto ( const char * protocol)

References ipproto_vals.

Referenced by DEFUN(), DEFUN_ATTR(), DEFUN_ATTR(), and DEFUN_ATTR().

◆ ss7_vty_init_node_as()

void ss7_vty_init_node_as ( void )

References as_node, 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 osmo_ss7_vty_init_sg().

◆ 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 )

◆ ss7_vty_write_one_oxs()

Variable Documentation

◆ cs7_role

◆ g_ctx

void* g_ctx
extern

◆ ipproto_vals

const struct value_string ipproto_vals[]
extern