libosmo-sigtran
0.10.0
Osmocom SIGTRAN library
|
#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 <osmocom/sigtran/sccp_sap.h>
Data Structures | |
struct | osmo_sccp_addr_entry |
Macros | |
#define | XUA_VAR_STR "(sua|m3ua|ipa)" |
#define | XUA_VAR_HELP_STR |
#define | ROUTING_KEY_CMD "routing-key RCONTEXT DPC" |
#define | ROUTING_KEY_CMD_STRS |
#define | ROUTING_KEY_SI_ARG " si (aal2|bicc|b-isup|h248|isup|sat-isup|sccp|tup)" |
#define | ROUTING_KEY_SI_ARG_STRS |
#define | ROUTING_KEY_SSN_ARG " ssn SSN" |
#define | ROUTING_KEY_SSN_ARG_STRS |
Enumerations | |
enum | cs7_role_t { CS7_ROLE_SG, CS7_ROLE_ASP } |
Functions | |
DEFUN (cs7_instance, cs7_instance_cmd, "cs7 instance <0-15>", CS7_STR "Configure a SS7 Instance\ INST_STR "Number of the instance\") | |
DEFUN (cs7_net_ind, cs7_net_ind_cmd, "network-indicator (international | national | reserved | spare)", "Configure the Network Indicator\ "International Network\" "National Network\" "Reserved Network\" "Spare Network\") | |
DEFUN (cs7_pc_format, cs7_pc_format_cmd, "point-code format <1-24> [<1-23>] [<1-22>]", PC_STR "Configure Point Code Format\ "Length of first PC component\" "Length of second PC component\" "Length of third PC component\") | |
DEFUN (cs7_pc_format_def, cs7_pc_format_def_cmd, "point-code format default", PC_STR "Configure Point Code Format\ "Default Point Code Format(3.8.3)\") | |
DEFUN (cs7_pc_delimiter, cs7_pc_delimiter_cmd, "point-code delimiter (default|dash)", PC_STR "Configure Point Code Delimiter\ "Use dot as delimiter\" "User dash as delimiter\") | |
DEFUN (cs7_point_code, cs7_point_code_cmd, "point-code POINT_CODE", "Configure the local Point Code\ "Point Code\") | |
DEFUN (cs7_permit_dyn_rkm, cs7_permit_dyn_rkm_cmd, "xua rkm routing-key-allocation (static-only|dynamic-permitted)", "SIGTRAN xxxUA related\ "Routing Key Management\" "Routing Key Management Allocation Policy\" "Only static(pre-confgured) Routing Keys permitted\" "Dynamically allocate Routing Keys for what ASPs request\") | |
static void | write_one_cs7 (struct vty *vty, struct osmo_ss7_instance *inst) |
static int | config_write_cs7 (struct vty *vty) |
DEFUN (show_cs7_user, show_cs7_user_cmd, "show cs7 instance <0-15> users", SHOW_STR CS7_STR INST_STR INST_STR "User Table\) | |
DEFUN (cs7_route_table, cs7_route_table_cmd, "route-table system", "Specify the name of the route table\ "Name of the route table\") | |
DEFUN (cs7_rt_upd, cs7_rt_upd_cmd, "update route POINT_CODE MASK linkset LS_NAME [priority PRIO] [qos-class (CLASS|default)]", "Update the Route\ "Update the Route\" "Destination Point Code\" "Point Code Mask\" "Point Code Length\" "Specify Destination Linkset\" "Linkset Name\" "Specify Priority\" "Priority\" "Specify QoS Class\" "QoS Class\" "Default QoS Class\") | |
DEFUN (cs7_rt_rem, cs7_rt_rem_cmd, "remove route POINT_CODE MASK", "Remove a Route\ "Remove a Route\" "Destination Point Code\" "Point Code Mask\" "Point Code Length\") | |
static void | write_one_rtable (struct vty *vty, struct osmo_ss7_route_table *rtable) |
static void | vty_dump_rtable (struct vty *vty, struct osmo_ss7_route_table *rtbl) |
DEFUN (show_cs7_route, show_cs7_route_cmd, "show cs7 instance <0-15> route", SHOW_STR CS7_STR INST_STR INST_STR "Routing Table\) | |
static enum osmo_ss7_asp_protocol | parse_asp_proto (const char *protocol) |
DEFUN (cs7_xua, cs7_xua_cmd, "listen " XUA_VAR_STR " <0-65534>", "Configure/Enable xUA Listener\ XUA_VAR_HELP_STR "SCTP Port number\") | |
DEFUN (no_cs7_xua, no_cs7_xua_cmd, "no listen " XUA_VAR_STR " <0-65534>", NO_STR "Disable xUA Listener on given SCTP Port\ XUA_VAR_HELP_STR "SCTP Port number\") | |
DEFUN (xua_local_ip, xua_local_ip_cmd, "local-ip A.B.C.D", "Configure the Local IP Address for xUA\ "IP Address to use for XUA\") | |
DEFUN (xua_accept_dyn_asp, xua_accept_dyn_asp_cmd, "accept-asp-connections (pre-configured|dynamic-permitted)", "Define what kind of ASP connections to accept\ "Accept only pre-confiugred ASPs(source IP/prt)\" "Accept any connection and dynamically create an ASP definition\") | |
static void | write_one_xua (struct vty *vty, struct osmo_xua_server *xs) |
static void | vty_dump_xua_server (struct vty *vty, struct osmo_xua_server *xs) |
DEFUN (show_cs7_xua, show_cs7_xua_cmd, "show cs7 "XUA_VAR_STR" [<0-65534>]", SHOW_STR CS7_STR XUA_VAR_HELP_STR "Port Number") | |
DEFUN (cs7_asp, cs7_asp_cmd, "asp NAME <0-65535> <0-65535> " XUA_VAR_STR, "Configure Application Server Process\ "Name of ASP\" "Remote SCTP port number\" "Local SCTP port number\" XUA_VAR_HELP_STR) | |
DEFUN (no_cs7_asp, no_cs7_asp_cmd, "no asp NAME", NO_STR "Disable Application Server Process\ "Name of ASP\") | |
DEFUN (asp_local_ip, asp_local_ip_cmd, "local-ip A.B.C.D", "Specify Local IP Address from which to contact ASP\ "Local IP Address from which to contact of ASP\") | |
DEFUN (asp_remote_ip, asp_remote_ip_cmd, "remote-ip A.B.C.D", "Specify Remote IP Address of ASP\ "Remote IP Address of ASP\") | |
DEFUN (asp_qos_clas, asp_qos_class_cmd, "qos-class <0-255>", "Specify QoS Class of ASP\ "QoS Class of ASP\") | |
DEFUN (asp_block, asp_block_cmd, "block", "Allows a SCTP Association with ASP, but doesn't let it become active\) | |
DEFUN (asp_shutdown, asp_shutdown_cmd, "shutdown", "Terminates SCTP association; New associations will be rejected\) | |
DEFUN (show_cs7_asp, show_cs7_asp_cmd, "show cs7 instance <0-15> asp", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP)\) | |
static void | write_one_asp (struct vty *vty, struct osmo_ss7_asp *asp) |
DEFUN (cs7_as, cs7_as_cmd, "as NAME " XUA_VAR_STR, "Configure an Application Server\ "Name of the Application Server\" XUA_VAR_HELP_STR) | |
DEFUN (no_cs7_as, no_cs7_as_cmd, "no as NAME", NO_STR "Disable Application Server\ "Name of AS\") | |
DEFUN (as_asp, as_asp_cmd, "asp NAME", "Specify that a given ASP is part of this AS\ "Name of ASP to be added to AS\") | |
DEFUN (as_no_asp, as_no_asp_cmd, "no asp NAME", NO_STR "Specify ASP to be removed from this AS\ "Name of ASP to be removed\") | |
DEFUN (as_traf_mode, as_traf_mode_cmd, "traffic-mode (broadcast | loadshare | roundrobin | override)", "Specifies traffic mode of operation of the ASP within the AS\ "Broadcast to all ASP within AS\" "Share Load among all ASP within AS\" "Round-Robin between all ASP within AS\" "Override\") | |
DEFUN (as_recov_tout, as_recov_tout_cmd, "recovery-timeout <1-2000>", "Specifies the recovery timeout value in milliseconds\ "Recovery Timeout in Milliseconds\") | |
DEFUN (as_qos_clas, as_qos_class_cmd, "qos-class <0-255>", "Specity QoS Class of AS\ "QoS Class of AS\") | |
static int | _rout_key (struct vty *vty, const char *rcontext, const char *dpc, const char *si, const char *ssn) |
DEFUN (as_rout_key, as_rout_key_cmd, ROUTING_KEY_CMD, ROUTING_KEY_CMD_STRS) | |
DEFUN (as_rout_key_si, as_rout_key_si_cmd, ROUTING_KEY_CMD ROUTING_KEY_SI_ARG, ROUTING_KEY_CMD_STRS ROUTING_KEY_SI_ARG_STRS) | |
DEFUN (as_rout_key_ssn, as_rout_key_ssn_cmd, ROUTING_KEY_CMD ROUTING_KEY_SSN_ARG, ROUTING_KEY_CMD_STRS ROUTING_KEY_SSN_ARG_STRS) | |
DEFUN (as_rout_key_si_ssn, as_rout_key_si_ssn_cmd, ROUTING_KEY_CMD ROUTING_KEY_SI_ARG ROUTING_KEY_SSN_ARG, ROUTING_KEY_CMD_STRS ROUTING_KEY_SI_ARG_STRS ROUTING_KEY_SSN_ARG_STRS) | |
DEFUN (as_pc_override, as_pc_override_cmd, "point-code override dpc PC", "Point Code Specific Features\ "Override(force) a point-code to hard-coded value\" "Override Source Point Code\" "Override Destination Point Code\" "New Point Code\") | |
static void | write_one_as (struct vty *vty, struct osmo_ss7_as *as) |
DEFUN (show_cs7_as, show_cs7_as_cmd, "show cs7 instance <0-15> as (active|all|m3ua|sua)", SHOW_STR CS7_STR INST_STR INST_STR "Application Server (AS)\ "Display all active ASs\" "Display all ASs(default)\" "Display all m3ua ASs\" "Display all SUA ASs\") | |
LLIST_HEAD (sccp_address_book_global) | |
static struct osmo_sccp_addr_entry * | addr_entry_by_name_local (const char *name, const struct osmo_ss7_instance *inst) |
static struct osmo_sccp_addr_entry * | addr_entry_by_name_global (const char *name) |
struct osmo_ss7_instance * | osmo_sccp_addr_by_name (struct osmo_sccp_addr *dest_addr, const char *name) |
Lookup an SCCP address from the addressbook by its name. More... | |
const char * | osmo_sccp_name_by_addr (const struct osmo_sccp_addr *addr) |
Reverse lookup the lookup-name of a specified SCCP address. More... | |
static void | write_sccp_addressbook (struct vty *vty, const struct osmo_ss7_instance *inst) |
DEFUN (cs7_show_sccpaddr, cs7_show_sccpaddr_cmd, "show cs7 instance <0-15> sccp-addressbook", SHOW_STR CS7_STR INST_STR INST_STR "List all SCCP addressbook entries\) | |
DEFUN (cs7_sccpaddr, cs7_sccpaddr_cmd, "sccp-address NAME", "Create/Modify an SCCP addressbook entry\ "Name of the SCCP Address\") | |
DEFUN (cs7_sccpaddr_del, cs7_sccpaddr_del_cmd, "no sccp-address NAME", NO_STR "Delete an SCCP addressbook entry\ "Name of the SCCP Address\") | |
DEFUN (cs7_sccpaddr_ri, cs7_sccpaddr_ri_cmd, "routing-indicator (GT|PC|IP)", "Add Routing Indicator\ "by global-title\" "by point-code\" "by ip-address\") | |
DEFUN (cs7_sccpaddr_pc, cs7_sccpaddr_pc_cmd, "point-code POINT_CODE", "Add point-code Number\ "PC\") | |
DEFUN (cs7_sccpaddr_pc_del, cs7_sccpaddr_pc_del_cmd, "no point-code", NO_STR "Remove point-code Number\) | |
DEFUN (cs7_sccpaddr_ssn, cs7_sccpaddr_ssn_cmd, "subsystem-number <0-4294967295>", "Add Subsystem Number\ "SSN\") | |
DEFUN (cs7_sccpaddr_ssn_del, cs7_sccpaddr_ssn_del_cmd, "no subsystem-number", NO_STR "Remove Subsystem Number\) | |
DEFUN (cs7_sccpaddr_gt, cs7_sccpaddr_gt_cmd, "global-title", "Add/Modify Global Title\) | |
DEFUN (cs7_sccpaddr_gt_del, cs7_sccpaddr_gt_del_cmd, "no global-title", NO_STR "Remove Global Title\) | |
DEFUN (cs7_sccpaddr_gt_gti, cs7_sccpaddr_gt_gti_cmd, "global-title-indicator <0-15>", "Set Global Title Indicator\ "GTI\") | |
DEFUN (cs7_sccpaddr_gt_tt, cs7_sccpaddr_gt_tt_cmd, "translation-type <0-255>", "Set Global Title Translation Type\ "TT\") | |
DEFUN (cs7_sccpaddr_gt_npi, cs7_sccpaddr_gt_npi_cmd, "numbering-plan-indicator <0-15>", "Set Global Title Numbering Plan Indicator\ "NPI\") | |
DEFUN (cs7_sccpaddr_gt_nai, cs7_sccpaddr_gt_nai_cmd, "nature-of-address-indicator <0-127>", "Set Global Title Nature of Address Indicator\ "NAI\") | |
DEFUN (cs7_sccpaddr_gt_digits, cs7_sccpaddr_gt_digits_cmd, "digits DIGITS", "Set Global Title Digits\ "Number digits\") | |
int | osmo_ss7_vty_go_parent (struct vty *vty) |
int | osmo_ss7_is_config_node (struct vty *vty, int node) |
static void | vty_init_addr (void) |
static void | vty_init_shared (void *ctx) |
void | osmo_ss7_vty_init_asp (void *ctx) |
void | osmo_ss7_vty_init_sg (void *ctx) |
Variables | |
enum cs7_role_t | __attribute__ |
static enum cs7_role_t | cs7_role |
static void * | g_ctx |
static struct cmd_node | cs7_node |
static const struct value_string | ss7_network_indicator_vals [] |
static struct cmd_node | rtable_node |
static struct cmd_node | xua_node |
static struct cmd_node | asp_node |
static struct cmd_node | as_node |
const struct value_string | mtp_si_vals [] |
static struct cmd_node | sccpaddr_node |
static struct cmd_node | sccpaddr_gt_node |
#define ROUTING_KEY_CMD "routing-key RCONTEXT DPC" |
#define ROUTING_KEY_CMD_STRS |
#define ROUTING_KEY_SI_ARG " si (aal2|bicc|b-isup|h248|isup|sat-isup|sccp|tup)" |
#define ROUTING_KEY_SI_ARG_STRS |
#define ROUTING_KEY_SSN_ARG " ssn SSN" |
#define ROUTING_KEY_SSN_ARG_STRS |
#define XUA_VAR_HELP_STR |
#define XUA_VAR_STR "(sua|m3ua|ipa)" |
enum cs7_role_t |
|
static |
|
static |
References osmo_sccp_addr_entry::list_global, and osmo_sccp_addr_entry::name.
Referenced by DEFUN(), and osmo_sccp_addr_by_name().
|
static |
References osmo_ss7_instance::cfg, osmo_sccp_addr_entry::inst, osmo_sccp_addr_entry::list, osmo_sccp_addr_entry::name, and osmo_ss7_instance::sccp_address_book.
Referenced by DEFUN().
|
static |
References osmo_ss7_instance::list, osmo_ss7_instances, and write_one_cs7().
Referenced by vty_init_shared().
DEFUN | ( | cs7_instance | , |
cs7_instance_cmd | , | ||
"cs7 instance <0-15>" | , | ||
CS7_STR "Configure a SS7 Instance\ INST_STR "Number of the instance\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_instance::description, g_ctx, and osmo_ss7_instance_find_or_create().
Referenced by DEFUN().
DEFUN | ( | cs7_net_ind | , |
cs7_net_ind_cmd | , | ||
"network-indicator (international | national | reserved | spare)" | , | ||
"Configure the Network Indicator\ "International Network\" "National Network\" "Reserved Network\" "Spare Network\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_instance::network_indicator, ni, and ss7_network_indicator_vals.
DEFUN | ( | cs7_pc_format | , |
cs7_pc_format_cmd | , | ||
"point-code format <1-24> " | [< 1-23 >][< 1-22 >], | ||
PC_STR "Configure Point Code Format\ "Length of first PC component\" "Length of second PC component\" "Length of third PC component\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_pc_fmt::component_len, and osmo_ss7_instance::pc_fmt.
DEFUN | ( | cs7_pc_format_def | , |
cs7_pc_format_def_cmd | , | ||
"point-code format default" | , | ||
PC_STR "Configure Point Code Format\ "Default Point Code Format(3.8.3)\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_pc_fmt::component_len, and osmo_ss7_instance::pc_fmt.
DEFUN | ( | cs7_pc_delimiter | , |
cs7_pc_delimiter_cmd | , | ||
"point-code delimiter (default|dash)" | , | ||
PC_STR "Configure Point Code Delimiter\ "Use dot as delimiter\" "User dash as delimiter\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_pc_fmt::delimiter, and osmo_ss7_instance::pc_fmt.
DEFUN | ( | cs7_point_code | , |
cs7_point_code_cmd | , | ||
"point-code POINT_CODE" | , | ||
"Configure the local Point Code\ "Point Code\" | |||
) |
DEFUN | ( | cs7_permit_dyn_rkm | , |
cs7_permit_dyn_rkm_cmd | , | ||
"xua rkm routing-key-allocation (static-only|dynamic-permitted)" | , | ||
"SIGTRAN xxxUA related\ "Routing Key Management\" "Routing Key Management Allocation Policy\" "Only static(pre-confgured) Routing Keys permitted\" "Dynamically allocate Routing Keys for what ASPs request\" | |||
) |
References osmo_ss7_instance::cfg, osmo_ss7_instance::permit_dyn_rkm_alloc, and write_one_cs7().
DEFUN | ( | show_cs7_user | , |
show_cs7_user_cmd | , | ||
"show cs7 instance <0-15> users" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "User Table\ | |||
) |
References osmo_ss7_user::name, osmo_ss7_instance_find(), and osmo_ss7_instance::user.
DEFUN | ( | cs7_route_table | , |
cs7_route_table_cmd | , | ||
"route-table system" | , | ||
"Specify the name of the route table\ "Name of the route table\" | |||
) |
DEFUN | ( | cs7_rt_upd | , |
cs7_rt_upd_cmd | , | ||
"update route POINT_CODE MASK linkset LS_NAME " | [priority PRIO][qos-class(CLASS|default)], | ||
"Update the Route\ "Update the Route\" "Destination Point Code\" "Point Code Mask\" "Point Code Length\" "Specify Destination Linkset\" "Linkset Name\" "Specify Priority\" "Priority\" "Specify QoS Class\" "QoS Class\" "Default QoS Class\" | |||
) |
DEFUN | ( | cs7_rt_rem | , |
cs7_rt_rem_cmd | , | ||
"remove route POINT_CODE MASK" | , | ||
"Remove a Route\ "Remove a Route\" "Destination Point Code\" "Point Code Mask\" "Point Code Length\" | |||
) |
DEFUN | ( | show_cs7_route | , |
show_cs7_route_cmd | , | ||
"show cs7 instance <0-15> route" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Routing Table\ | |||
) |
References osmo_ss7_instance_find(), osmo_ss7_instance::rtable_system, and vty_dump_rtable().
DEFUN | ( | cs7_xua | , |
cs7_xua_cmd | , | ||
"listen " XUA_VAR_STR " <0-65534>" | , | ||
"Configure/Enable xUA Listener\ XUA_VAR_HELP_STR "SCTP Port number\" | |||
) |
DEFUN | ( | no_cs7_xua | , |
no_cs7_xua_cmd | , | ||
"no listen " XUA_VAR_STR " <0-65534>" | , | ||
NO_STR "Disable xUA Listener on given SCTP Port\ XUA_VAR_HELP_STR "SCTP Port number\" | |||
) |
DEFUN | ( | xua_local_ip | , |
xua_local_ip_cmd | , | ||
"local-ip A.B.C.D" | , | ||
"Configure the Local IP Address for xUA\ "IP Address to use for XUA\" | |||
) |
References osmo_ss7_xua_server_bind(), and osmo_ss7_xua_server_set_local_host().
DEFUN | ( | xua_accept_dyn_asp | , |
xua_accept_dyn_asp_cmd | , | ||
"accept-asp-connections (pre-configured|dynamic-permitted)" | , | ||
"Define what kind of ASP connections to accept\ "Accept only pre-confiugred ASPs(source IP/prt)\" "Accept any connection and dynamically create an ASP definition\" | |||
) |
References osmo_xua_server::accept_dyn_reg, and osmo_xua_server::cfg.
DEFUN | ( | show_cs7_xua | , |
show_cs7_xua_cmd | , | ||
"show cs7 "XUA_VAR_STR" " | [< 0-65534 >], | ||
SHOW_STR CS7_STR XUA_VAR_HELP_STR "Port Number" | |||
) |
DEFUN | ( | cs7_asp | , |
cs7_asp_cmd | , | ||
"asp NAME <0-65535> <0-65535> " | XUA_VAR_STR, | ||
"Configure Application Server Process\ "Name of ASP\" "Remote SCTP port number\" "Local SCTP port number\" | XUA_VAR_HELP_STR | ||
) |
DEFUN | ( | no_cs7_asp | , |
no_cs7_asp_cmd | , | ||
"no asp NAME" | , | ||
NO_STR "Disable Application Server Process\ "Name of ASP\" | |||
) |
References osmo_ss7_instance::name, osmo_ss7_asp_destroy(), and osmo_ss7_asp_find_by_name().
DEFUN | ( | asp_local_ip | , |
asp_local_ip_cmd | , | ||
"local-ip A.B.C.D" | , | ||
"Specify Local IP Address from which to contact ASP\ "Local IP Address from which to contact of ASP\" | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp_peer::host, and osmo_ss7_asp::local.
DEFUN | ( | asp_remote_ip | , |
asp_remote_ip_cmd | , | ||
"remote-ip A.B.C.D" | , | ||
"Specify Remote IP Address of ASP\ "Remote IP Address of ASP\" | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp_peer::host, and osmo_ss7_asp::remote.
DEFUN | ( | asp_qos_clas | , |
asp_qos_class_cmd | , | ||
"qos-class <0-255>" | , | ||
"Specify QoS Class of ASP\ "QoS Class of ASP\" | |||
) |
References osmo_ss7_asp::cfg, and osmo_ss7_asp::qos_class.
DEFUN | ( | asp_block | , |
asp_block_cmd | , | ||
"block" | , | ||
"Allows a SCTP Association with | ASP, | ||
but doesn 't let it become active\n" | |||
) |
DEFUN | ( | asp_shutdown | , |
asp_shutdown_cmd | , | ||
"shutdown" | , | ||
"Terminates SCTP association; New associations will be rejected\ | |||
) |
DEFUN | ( | cs7_as | , |
cs7_as_cmd | , | ||
"as NAME " | XUA_VAR_STR, | ||
"Configure an Application Server\ "Name of the Application Server\" | XUA_VAR_HELP_STR | ||
) |
DEFUN | ( | no_cs7_as | , |
no_cs7_as_cmd | , | ||
"no as NAME" | , | ||
NO_STR "Disable Application Server\ "Name of AS\" | |||
) |
References osmo_ss7_instance::name, osmo_ss7_as_destroy(), and osmo_ss7_as_find_by_name().
DEFUN | ( | as_asp | , |
as_asp_cmd | , | ||
"asp NAME" | , | ||
"Specify that a given ASP is part of this AS\ "Name of ASP to be added to AS\" | |||
) |
References osmo_ss7_as_add_asp().
DEFUN | ( | as_no_asp | , |
as_no_asp_cmd | , | ||
"no asp NAME" | , | ||
NO_STR "Specify ASP to be removed from this AS\ "Name of ASP to be removed\" | |||
) |
References osmo_ss7_as_del_asp().
DEFUN | ( | as_traf_mode | , |
as_traf_mode_cmd | , | ||
"traffic-mode (broadcast | loadshare | roundrobin | override)" | , | ||
"Specifies traffic mode of operation of the ASP within the AS\ "Broadcast to all ASP within AS\" "Share Load among all ASP within AS\" "Round-Robin between all ASP within AS\" "Override\" | |||
) |
References osmo_ss7_as::cfg, osmo_ss7_as::mode, and osmo_ss7_as_traffic_mode_vals.
DEFUN | ( | as_recov_tout | , |
as_recov_tout_cmd | , | ||
"recovery-timeout <1-2000>" | , | ||
"Specifies the recovery timeout value in milliseconds\ "Recovery Timeout in Milliseconds\" | |||
) |
References osmo_ss7_as::cfg, and osmo_ss7_as::recovery_timeout_msec.
DEFUN | ( | as_qos_clas | , |
as_qos_class_cmd | , | ||
"qos-class <0-255>" | , | ||
"Specity QoS Class of AS\ "QoS Class of AS\" | |||
) |
References osmo_ss7_as::cfg, and osmo_ss7_as::qos_class.
DEFUN | ( | as_rout_key | , |
as_rout_key_cmd | , | ||
ROUTING_KEY_CMD | , | ||
ROUTING_KEY_CMD_STRS | |||
) |
References _rout_key().
DEFUN | ( | as_rout_key_si | , |
as_rout_key_si_cmd | , | ||
ROUTING_KEY_CMD | ROUTING_KEY_SI_ARG, | ||
ROUTING_KEY_CMD_STRS | ROUTING_KEY_SI_ARG_STRS | ||
) |
References _rout_key().
DEFUN | ( | as_rout_key_ssn | , |
as_rout_key_ssn_cmd | , | ||
ROUTING_KEY_CMD | ROUTING_KEY_SSN_ARG, | ||
ROUTING_KEY_CMD_STRS | ROUTING_KEY_SSN_ARG_STRS | ||
) |
References _rout_key().
DEFUN | ( | as_rout_key_si_ssn | , |
as_rout_key_si_ssn_cmd | , | ||
ROUTING_KEY_CMD ROUTING_KEY_SI_ARG | ROUTING_KEY_SSN_ARG, | ||
ROUTING_KEY_CMD_STRS ROUTING_KEY_SI_ARG_STRS | ROUTING_KEY_SSN_ARG_STRS | ||
) |
References _rout_key().
DEFUN | ( | as_pc_override | , |
as_pc_override_cmd | , | ||
"point-code override dpc PC" | , | ||
"Point Code Specific Features\ "Override(force) a point-code to hard-coded value\" "Override Source Point Code\" "Override Destination Point Code\" "New Point Code\" | |||
) |
DEFUN | ( | show_cs7_as | , |
show_cs7_as_cmd | , | ||
"show cs7 instance <0-15> as (active|all|m3ua|sua)" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server (AS)\ "Display all active ASs\" "Display all ASs(default)\" "Display all m3ua ASs\" "Display all SUA ASs\" | |||
) |
References osmo_ss7_instance::as_list, osmo_ss7_as::cfg, osmo_ss7_routing_key::context, osmo_ss7_as::fi, osmo_ss7_as::inst, osmo_ss7_as::list, osmo_ss7_as::name, OSMO_SS7_ASP_PROT_M3UA, OSMO_SS7_ASP_PROT_SUA, osmo_ss7_instance_find(), osmo_ss7_pointcode_print(), osmo_ss7_routing_key::pc, osmo_ss7_as::proto, and osmo_ss7_as::routing_key.
DEFUN | ( | cs7_show_sccpaddr | , |
cs7_show_sccpaddr_cmd | , | ||
"show cs7 instance <0-15> sccp-addressbook" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "List all SCCP addressbook entries\ | |||
) |
References osmo_sccp_addr_entry::addr, osmo_ss7_instance::cfg, osmo_ss7_instance::description, osmo_sccp_gt::digits, osmo_sccp_addr::gt, osmo_sccp_gt::gti, osmo_sccp_addr_entry::inst, osmo_sccp_addr::ip, osmo_sccp_addr_entry::list, osmo_sccp_gt::nai, osmo_sccp_addr_entry::name, osmo_sccp_gt::npi, OSMO_SCCP_ADDR_T_GT, OSMO_SCCP_ADDR_T_IPv4, OSMO_SCCP_ADDR_T_IPv6, OSMO_SCCP_ADDR_T_PC, OSMO_SCCP_ADDR_T_SSN, OSMO_SCCP_RI_GT, OSMO_SCCP_RI_SSN_IP, OSMO_SCCP_RI_SSN_PC, osmo_ss7_instance_find(), osmo_ss7_pointcode_print(), osmo_sccp_addr::pc, osmo_sccp_addr::presence, osmo_sccp_addr::ri, osmo_ss7_instance::sccp_address_book, osmo_sccp_addr::ssn, osmo_sccp_gt::tt, osmo_sccp_addr::v4, and osmo_sccp_addr::v6.
DEFUN | ( | cs7_sccpaddr | , |
cs7_sccpaddr_cmd | , | ||
"sccp-address NAME" | , | ||
"Create/Modify an SCCP addressbook entry\ "Name of the SCCP Address\" | |||
) |
DEFUN | ( | cs7_sccpaddr_del | , |
cs7_sccpaddr_del_cmd | , | ||
"no sccp-address NAME" | , | ||
NO_STR "Delete an SCCP addressbook entry\ "Name of the SCCP Address\" | |||
) |
References addr_entry_by_name_local(), and osmo_sccp_addr_entry::name.
DEFUN | ( | cs7_sccpaddr_ri | , |
cs7_sccpaddr_ri_cmd | , | ||
"routing-indicator (GT|PC|IP)" | , | ||
"Add Routing Indicator\ "by global-title\" "by point-code\" "by ip-address\" | |||
) |
DEFUN | ( | cs7_sccpaddr_pc | , |
cs7_sccpaddr_pc_cmd | , | ||
"point-code POINT_CODE" | , | ||
"Add point-code Number\ "PC\" | |||
) |
DEFUN | ( | cs7_sccpaddr_pc_del | , |
cs7_sccpaddr_pc_del_cmd | , | ||
"no point-code" | , | ||
NO_STR "Remove point-code Number\ | |||
) |
References osmo_sccp_addr_entry::addr, OSMO_SCCP_ADDR_T_PC, osmo_sccp_addr::pc, and osmo_sccp_addr::presence.
DEFUN | ( | cs7_sccpaddr_ssn | , |
cs7_sccpaddr_ssn_cmd | , | ||
"subsystem-number <0-4294967295>" | , | ||
"Add Subsystem Number\ "SSN\" | |||
) |
DEFUN | ( | cs7_sccpaddr_ssn_del | , |
cs7_sccpaddr_ssn_del_cmd | , | ||
"no subsystem-number" | , | ||
NO_STR "Remove Subsystem Number\ | |||
) |
DEFUN | ( | cs7_sccpaddr_gt | , |
cs7_sccpaddr_gt_cmd | , | ||
"global-title" | , | ||
"Add/Modify Global Title\ | |||
) |
References osmo_sccp_addr_entry::addr, OSMO_SCCP_ADDR_T_GT, and osmo_sccp_addr::presence.
DEFUN | ( | cs7_sccpaddr_gt_del | , |
cs7_sccpaddr_gt_del_cmd | , | ||
"no global-title" | , | ||
NO_STR "Remove Global Title\ | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr::gt, OSMO_SCCP_ADDR_T_GT, and osmo_sccp_addr::presence.
DEFUN | ( | cs7_sccpaddr_gt_gti | , |
cs7_sccpaddr_gt_gti_cmd | , | ||
"global-title-indicator <0-15>" | , | ||
"Set Global Title Indicator\ "GTI\" | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr::gt, and osmo_sccp_gt::gti.
DEFUN | ( | cs7_sccpaddr_gt_tt | , |
cs7_sccpaddr_gt_tt_cmd | , | ||
"translation-type <0-255>" | , | ||
"Set Global Title Translation Type\ "TT\" | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr::gt, and osmo_sccp_gt::tt.
DEFUN | ( | cs7_sccpaddr_gt_npi | , |
cs7_sccpaddr_gt_npi_cmd | , | ||
"numbering-plan-indicator <0-15>" | , | ||
"Set Global Title Numbering Plan Indicator\ "NPI\" | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr::gt, and osmo_sccp_gt::npi.
DEFUN | ( | cs7_sccpaddr_gt_nai | , |
cs7_sccpaddr_gt_nai_cmd | , | ||
"nature-of-address-indicator <0-127>" | , | ||
"Set Global Title Nature of Address Indicator\ "NAI\" | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr::gt, and osmo_sccp_gt::nai.
DEFUN | ( | cs7_sccpaddr_gt_digits | , |
cs7_sccpaddr_gt_digits_cmd | , | ||
"digits DIGITS" | , | ||
"Set Global Title Digits\ "Number digits\" | |||
) |
References osmo_sccp_addr_entry::addr, osmo_sccp_gt::digits, and osmo_sccp_addr::gt.
LLIST_HEAD | ( | sccp_address_book_global | ) |
struct osmo_ss7_instance* osmo_sccp_addr_by_name | ( | struct osmo_sccp_addr * | dest_addr, |
const char * | name | ||
) |
Lookup an SCCP address from the addressbook by its name.
[out] | dest_addr | pointer to output the resulting sccp-address; (set to NULL if not interested) |
[in] | name | of the address to lookup |
References osmo_sccp_addr_entry::addr, addr_entry_by_name_global(), and osmo_sccp_addr_entry::inst.
const char* osmo_sccp_name_by_addr | ( | const struct osmo_sccp_addr * | addr | ) |
Reverse lookup the lookup-name of a specified SCCP address.
[in] | name | of the address to lookup |
References osmo_sccp_addr_entry::addr, osmo_sccp_addr_entry::list_global, and osmo_sccp_addr_entry::name.
int osmo_ss7_is_config_node | ( | struct vty * | vty, |
int | node | ||
) |
int osmo_ss7_vty_go_parent | ( | struct vty * | vty | ) |
void osmo_ss7_vty_init_asp | ( | void * | ctx | ) |
References cs7_role, CS7_ROLE_ASP, and vty_init_shared().
void osmo_ss7_vty_init_sg | ( | void * | ctx | ) |
References cs7_role, CS7_ROLE_SG, rtable_node, vty_init_shared(), and xua_node.
|
static |
References osmo_ss7_asp_protocol_vals.
Referenced by DEFUN().
|
static |
|
static |
References osmo_xua_server::cfg, osmo_ss7_asp_peer::host, osmo_xua_server::local, osmo_ss7_asp_protocol_vals, osmo_ss7_asp_peer::port, and osmo_xua_server::proto.
Referenced by DEFUN().
|
static |
References sccpaddr_gt_node, and sccpaddr_node.
Referenced by vty_init_shared().
|
static |
References as_node, asp_node, config_write_cs7(), cs7_node, g_ctx, and vty_init_addr().
Referenced by osmo_ss7_vty_init_asp(), and osmo_ss7_vty_init_sg().
|
static |
References osmo_ss7_as::asps, osmo_ss7_as::cfg, osmo_ss7_asp::cfg, osmo_ss7_routing_key::context, osmo_ss7_as::description, osmo_ss7_as::inst, osmo_ss7_as::mode, mtp_si_vals, osmo_ss7_as::name, osmo_ss7_asp::name, OSMO_SS7_AS_TMOD_LOADSHARE, osmo_ss7_as_traffic_mode_name(), osmo_ss7_asp_protocol_name(), osmo_ss7_pointcode_print(), osmo_ss7_routing_key::pc, osmo_ss7_as::pc_override, osmo_ss7_as::proto, osmo_ss7_as::qos_class, osmo_ss7_as::recovery_timeout_msec, osmo_ss7_as::rkm_dyn_allocated, osmo_ss7_as::routing_key, osmo_ss7_routing_key::si, and osmo_ss7_routing_key::ssn.
Referenced by write_one_cs7().
|
static |
References osmo_ss7_asp::cfg, osmo_ss7_asp::description, osmo_ss7_asp::dyn_allocated, osmo_ss7_asp_peer::host, osmo_ss7_asp::local, osmo_ss7_asp::name, osmo_ss7_asp_protocol_name(), osmo_ss7_asp_peer::port, osmo_ss7_asp::proto, osmo_ss7_asp::qos_class, and osmo_ss7_asp::remote.
Referenced by write_one_cs7().
|
static |
References osmo_ss7_instance::as_list, osmo_ss7_instance::asp_list, osmo_ss7_instance::cfg, osmo_ss7_pc_fmt::component_len, cs7_role, CS7_ROLE_SG, osmo_ss7_pc_fmt::delimiter, osmo_ss7_instance::description, osmo_ss7_instance::id, osmo_sccp_addr_entry::list, osmo_ss7_instance::network_indicator, osmo_ss7_pc_is_valid(), osmo_ss7_pointcode_print(), osmo_ss7_instance::pc_fmt, osmo_ss7_instance::permit_dyn_rkm_alloc, osmo_ss7_instance::primary_pc, osmo_ss7_instance::rtable_list, ss7_network_indicator_vals, write_one_as(), write_one_asp(), write_one_rtable(), write_one_xua(), write_sccp_addressbook(), and osmo_ss7_instance::xua_servers.
Referenced by config_write_cs7(), and DEFUN().
|
static |
References osmo_ss7_route_table::cfg, osmo_ss7_route::cfg, osmo_ss7_route_table::description, osmo_ss7_route_table::inst, osmo_ss7_route::linkset_name, osmo_ss7_route::list, osmo_ss7_route::mask, osmo_ss7_route_table::name, osmo_ss7_pointcode_print(), osmo_ss7_route::pc, osmo_ss7_route::priority, osmo_ss7_route::qos_class, and osmo_ss7_route_table::routes.
Referenced by write_one_cs7().
|
static |
|
static |
References osmo_sccp_addr_entry::addr, osmo_ss7_instance::cfg, osmo_sccp_gt::digits, osmo_sccp_addr::gt, osmo_sccp_gt::gti, osmo_sccp_addr_entry::inst, osmo_sccp_addr_entry::list, osmo_sccp_gt::nai, osmo_sccp_addr_entry::name, osmo_sccp_gt::npi, OSMO_SCCP_ADDR_T_GT, OSMO_SCCP_ADDR_T_PC, OSMO_SCCP_ADDR_T_SSN, OSMO_SCCP_RI_GT, OSMO_SCCP_RI_NONE, OSMO_SCCP_RI_SSN_IP, OSMO_SCCP_RI_SSN_PC, osmo_ss7_pointcode_print(), osmo_sccp_addr::pc, osmo_sccp_addr::presence, osmo_sccp_addr::ri, osmo_ss7_instance::sccp_address_book, osmo_sccp_addr::ssn, and osmo_sccp_gt::tt.
Referenced by write_one_cs7().
enum cs7_role_t __attribute__ |
|
static |
Referenced by vty_init_shared().
|
static |
Referenced by vty_init_shared().
|
static |
Referenced by vty_init_shared().
|
static |
Referenced by osmo_ss7_vty_init_asp(), osmo_ss7_vty_init_sg(), and write_one_cs7().
|
static |
Referenced by DEFUN(), and vty_init_shared().
const struct value_string mtp_si_vals[] |
Referenced by _rout_key(), and write_one_as().
|
static |
Referenced by osmo_ss7_vty_init_sg().
|
static |
Referenced by vty_init_addr().
|
static |
Referenced by vty_init_addr().
|
static |
Referenced by DEFUN(), and write_one_cs7().
|
static |
Referenced by osmo_ss7_vty_init_sg().