libosmo-sigtran 2.1.0.134-a6b3
Osmocom SIGTRAN library
|
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <osmocom/core/sockaddr_str.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/netif/stream.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "xua_internal.h"
#include "ss7_as.h"
#include "ss7_asp.h"
#include "ss7_combined_linkset.h"
#include <ss7_linkset.h>
#include "ss7_internal.h"
#include "ss7_vty.h"
#include <netinet/tcp.h>
Macros | |
#define | ASP_SCTP_PARAM_INIT_DESC |
#define | ASP_SCTP_PARAM_INIT_FIELDS "(num-ostreams|max-instreams|max-attempts|timeout)" |
#define | ASP_TCP_PARAM_DESC "Configure TCP parameters\n" |
#define | ASP_TCP_PARAM_KEEPALIVE_DESC |
#define | ASP_TCP_PARAM_KEEPALIVE_CFG_DESC |
#define | ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS "(time|intvl|probes)" |
#define | ASP_TCP_PARAM_USER_TIMEOUT_DESC |
Functions | |
DEFUN_ATTR (cs7_asp, cs7_asp_cmd, "asp NAME <0-65535> <0-65535> " XUA_VAR_STR, "Configure Application Server Process\n" "Name of ASP\n" "Remote port number\n" "Local port number\n" XUA_VAR_HELP_STR, CMD_ATTR_NODE_EXIT) | |
ALIAS_ATTR (cs7_asp, cs7_asp_trans_proto_cmd, "asp NAME <0-65535> <0-65535> " XUA_VAR_STR " " IPPROTO_VAR_STR, "Configure Application Server Process\n" "Name of ASP\n" "Remote port number\n" "Local port number\n" XUA_VAR_HELP_STR IPPROTO_VAR_HELP_STR, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (no_cs7_asp, no_cs7_asp_cmd, "no asp NAME", NO_STR "Disable Application Server Process\n" "Name of ASP\n", CMD_ATTR_IMMEDIATE) | |
DEFUN_ATTR (asp_local_ip, asp_local_ip_cmd, "local-ip " VTY_IPV46_CMD " [primary]", "Specify Local IP Address from which to contact ASP\n" "Local IPv4 Address from which to contact of ASP\n" "Local IPv6 Address from which to contact of ASP\n" "Signal the SCTP peer to use this address as Primary Address\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_local_ip, asp_no_local_ip_cmd, "no local-ip " VTY_IPV46_CMD, NO_STR "Specify Local IP Address from which to contact ASP\n" "Local IPv4 Address from which to contact of ASP\n" "Local IPv6 Address from which to contact of ASP\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_remote_ip, asp_remote_ip_cmd, "remote-ip " VTY_IPV46_CMD " [primary]", "Specify Remote IP Address of ASP\n" "Remote IPv4 Address of ASP\n" "Remote IPv6 Address of ASP\n" "Set remote address as SCTP Primary Address\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_remote_ip, asp_no_remote_ip_cmd, "no remote-ip " VTY_IPV46_CMD, NO_STR "Specify Remote IP Address of ASP\n" "Remote IPv4 Address of ASP\n" "Remote IPv6 Address of ASP\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_qos_clas, asp_qos_class_cmd, "qos-class " QOS_CLASS_RANGE_STR, "Specify QoS Class of ASP\n" QOS_CLASS_RANGE_HELP_STR, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_role, asp_role_cmd, "role (sg|asp|ipsp)", "Specify the xUA role for this ASP\n" "SG (Signaling Gateway)\n" "ASP (Application Server Process)\n" "IPSP (IP Signalling Point)\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_transport_role, asp_transport_role_cmd, "transport-role (client|server)", "Specify the transport layer role for this ASP\n" "Operate as a client; connect to a server\n" "Operate as a server; wait for client connections\n", CMD_ATTR_NODE_EXIT) | |
ALIAS_ATTR (asp_transport_role, asp_sctp_role_cmd, "sctp-role (client|server)", "Specify the SCTP role for this ASP\n" "Operate as SCTP client; connect to a server\n" "Operate as SCTP server; wait for client connections\n", CMD_ATTR_HIDDEN|CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_sctp_param_init, asp_sctp_param_init_cmd, "sctp-param init " ASP_SCTP_PARAM_INIT_FIELDS " <0-65535>", ASP_SCTP_PARAM_INIT_DESC "Value of the parameter\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_sctp_param_init, asp_no_sctp_param_init_cmd, "no sctp-param init " ASP_SCTP_PARAM_INIT_FIELDS, NO_STR ASP_SCTP_PARAM_INIT_DESC, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_tcp_param_keepalive_enabled, asp_tcp_param_keepalive_enabled_cmd, "tcp-param keepalive enabled", ASP_TCP_PARAM_KEEPALIVE_DESC "Enable TCP keep-alive\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_tcp_param_keepalive, asp_no_tcp_param_keepalive_cmd, "no tcp-param keepalive", NO_STR ASP_TCP_PARAM_KEEPALIVE_DESC, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_tcp_param_keepalive_cfg, asp_tcp_param_keepalive_cfg_cmd, "tcp-param keepalive " ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS " <0-65535>", ASP_TCP_PARAM_KEEPALIVE_CFG_DESC "Value of the parameter\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_tcp_param_keepalive_cfg, asp_no_tcp_param_keepalive_cfg_cmd, "no tcp-param keepalive " ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS, NO_STR ASP_TCP_PARAM_KEEPALIVE_CFG_DESC, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_tcp_param_user_timeout, asp_tcp_param_user_timeout_cmd, "tcp-param user-timeout <0-65535>", ASP_TCP_PARAM_USER_TIMEOUT_DESC "Value of the parameter\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_tcp_param_user_timeout, asp_no_tcp_param_user_timeout_cmd, "no tcp-param user-timeout", NO_STR ASP_TCP_PARAM_USER_TIMEOUT_DESC, CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_block, asp_block_cmd, "block", "Allows a SCTP Association with ASP, but doesn't let it become active\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_shutdown, asp_shutdown_cmd, "shutdown", "Terminates SCTP association; New associations will be rejected\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_no_shutdown, asp_no_shutdown_cmd, "no shutdown", NO_STR "Terminates SCTP association; New associations will be rejected\n", CMD_ATTR_NODE_EXIT) | |
DEFUN_ATTR (asp_quirk, asp_quirk_cmd, "OVERWRITTEN", "OVERWRITTEN\n", CMD_ATTR_IMMEDIATE) | |
DEFUN_ATTR (asp_no_quirk, asp_no_quirk_cmd, "OVERWRITTEN", "OVERWRITTEN\n", CMD_ATTR_IMMEDIATE) | |
DEFUN_ATTR (asp_timer_xua, asp_timer_xua_cmd, NULL, NULL, CMD_ATTR_IMMEDIATE) | |
static void | gen_asp_timer_xua_cmd_strs (struct cmd_element *cmd) |
DEFUN_ATTR (asp_timer_lm, asp_timer_lm_cmd, NULL, NULL, CMD_ATTR_IMMEDIATE) | |
static void | gen_asp_timer_lm_cmd_strs (struct cmd_element *cmd) |
static void | write_asp_timers_xua (struct vty *vty, const char *indent, struct osmo_ss7_asp *asp) |
static void | write_asp_timers_lm (struct vty *vty, const char *indent, struct osmo_ss7_asp *asp) |
static char * | as_list_for_asp (const struct osmo_ss7_asp *asp, char *buf, size_t buf_len) |
static char * | get_sockname_buf (char *buf, size_t buf_len, int fd, int proto, bool local) |
static void | show_one_asp (struct vty *vty, struct osmo_ss7_asp *asp) |
static int | show_asp (struct vty *vty, int id, const char *asp_name) |
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)\n") | |
DEFUN (show_cs7_asp_name, show_cs7_asp_name_cmd, "show cs7 instance <0-15> asp name ASP_NAME", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP)\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n") | |
static void | show_one_asp_remaddr_tcp (struct vty *vty, struct osmo_ss7_asp *asp) |
static void | show_one_asp_remaddr (struct vty *vty, struct osmo_ss7_asp *asp) |
static int | show_asp_remaddr (struct vty *vty, int id, const char *asp_name) |
DEFUN (show_cs7_asp_remaddr, show_cs7_asp_remaddr_cmd, "show cs7 instance <0-15> asp-remaddr", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) remote addresses information\n") | |
DEFUN (show_cs7_asp_remaddr_name, show_cs7_asp_remaddr_name_cmd, "show cs7 instance <0-15> asp-remaddr name ASP_NAME", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) remote addresses information\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n") | |
static void | show_one_asp_assoc_status_tcp (struct vty *vty, struct osmo_ss7_asp *asp) |
static void | show_one_asp_assoc_status (struct vty *vty, struct osmo_ss7_asp *asp) |
static int | show_asp_assoc_status (struct vty *vty, int id, const char *asp_name) |
DEFUN (show_cs7_asp_assoc_status, show_cs7_asp_assoc_status_cmd, "show cs7 instance <0-15> asp-assoc-status", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) SCTP association status\n") | |
DEFUN (show_cs7_asp_assoc_status_name, show_cs7_asp_assoc_status_name_cmd, "show cs7 instance <0-15> asp-assoc-status name ASP_NAME", SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) SCTP association information\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n") | |
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_asp (void) |
Variables | |
static struct cmd_node | asp_node |
static const struct value_string | tcp_info_state_values [] |
static const struct value_string | asp_quirk_names [] |
static const struct value_string | asp_quirk_descs [] |
#define ASP_SCTP_PARAM_INIT_DESC |
#define ASP_SCTP_PARAM_INIT_FIELDS "(num-ostreams|max-instreams|max-attempts|timeout)" |
#define ASP_TCP_PARAM_DESC "Configure TCP parameters\n" |
#define ASP_TCP_PARAM_KEEPALIVE_CFG_DESC |
#define ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS "(time|intvl|probes)" |
#define ASP_TCP_PARAM_KEEPALIVE_DESC |
#define ASP_TCP_PARAM_USER_TIMEOUT_DESC |
ALIAS_ATTR | ( | asp_transport_role | , |
asp_sctp_role_cmd | , | ||
"sctp-role (client|server)" | , | ||
"Specify the SCTP role for this ASP\n" "Operate as SCTP client; connect to a server\n" "Operate as SCTP server; wait for client connections\n" | , | ||
CMD_ATTR_HIDDEN| | CMD_ATTR_NODE_EXIT | ||
) |
ALIAS_ATTR | ( | cs7_asp | , |
cs7_asp_trans_proto_cmd | , | ||
"asp NAME <0-65535> <0-65535> " XUA_VAR_STR " " | IPPROTO_VAR_STR, | ||
"Configure Application Server Process\n" "Name of ASP\n" "Remote port number\n" "Local port number\n" XUA_VAR_HELP_STR | IPPROTO_VAR_HELP_STR, | ||
CMD_ATTR_NODE_EXIT | |||
) |
|
static |
References osmo_ss7_instance::as_list, osmo_ss7_as::cfg, osmo_ss7_asp::inst, osmo_ss7_as::list, osmo_ss7_as::name, and osmo_ss7_as_has_asp().
Referenced by show_one_asp().
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)\n" | |||
) |
References NULL, and show_asp().
DEFUN | ( | show_cs7_asp_assoc_status | , |
show_cs7_asp_assoc_status_cmd | , | ||
"show cs7 instance <0-15> asp-assoc-status" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) SCTP association status\n" | |||
) |
References NULL, and show_asp_assoc_status().
DEFUN | ( | show_cs7_asp_assoc_status_name | , |
show_cs7_asp_assoc_status_name_cmd | , | ||
"show cs7 instance <0-15> asp-assoc-status name ASP_NAME" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) SCTP association information\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n" | |||
) |
References show_asp_assoc_status().
DEFUN | ( | show_cs7_asp_name | , |
show_cs7_asp_name_cmd | , | ||
"show cs7 instance <0-15> asp name ASP_NAME" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP)\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n" | |||
) |
References show_asp().
DEFUN | ( | show_cs7_asp_remaddr | , |
show_cs7_asp_remaddr_cmd | , | ||
"show cs7 instance <0-15> asp-remaddr" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) remote addresses information\n" | |||
) |
References NULL, and show_asp_remaddr().
DEFUN | ( | show_cs7_asp_remaddr_name | , |
show_cs7_asp_remaddr_name_cmd | , | ||
"show cs7 instance <0-15> asp-remaddr name ASP_NAME" | , | ||
SHOW_STR CS7_STR INST_STR INST_STR "Application Server Process (ASP) remote addresses information\n" "Lookup ASP with a given name\n" "Name of the Application Server Process (ASP)\n" | |||
) |
References show_asp_remaddr().
DEFUN_ATTR | ( | asp_block | , |
asp_block_cmd | , | ||
"block" | , | ||
"Allows a SCTP Association with | ASP, | ||
but doesn 't let it become active\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_local_ip | , |
asp_local_ip_cmd | , | ||
"local-ip " VTY_IPV46_CMD " " | [primary], | ||
"Specify Local IP Address from which to contact ASP\n" "Local IPv4 Address from which to contact of ASP\n" "Local IPv6 Address from which to contact of ASP\n" "Signal the SCTP peer to use this address as Primary Address\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp_peer::host, osmo_ss7_asp_peer::host_cnt, osmo_ss7_asp_peer::idx_primary, osmo_ss7_asp::local, OSMO_SS7_ASP_PROT_IPA, osmo_ss7_asp::proto, ss7_asp_apply_new_local_address(), ss7_asp_apply_peer_primary_address(), ss7_asp_is_started(), and ss7_asp_peer_add_host2().
DEFUN_ATTR | ( | asp_no_local_ip | , |
asp_no_local_ip_cmd | , | ||
"no local-ip " | VTY_IPV46_CMD, | ||
NO_STR "Specify Local IP Address from which to contact ASP\n" "Local IPv4 Address from which to contact of ASP\n" "Local IPv6 Address from which to contact of ASP\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_no_quirk | , |
asp_no_quirk_cmd | , | ||
"OVERWRITTEN" | , | ||
"OVERWRITTEN\n" | , | ||
CMD_ATTR_IMMEDIATE | |||
) |
References asp_quirk_names, osmo_ss7_asp::cfg, and osmo_ss7_asp::quirks.
DEFUN_ATTR | ( | asp_no_remote_ip | , |
asp_no_remote_ip_cmd | , | ||
"no remote-ip " | VTY_IPV46_CMD, | ||
NO_STR "Specify Remote IP Address of ASP\n" "Remote IPv4 Address of ASP\n" "Remote IPv6 Address of ASP\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp::remote, ss7_asp_peer_del_host(), and ss7_asp_peer_find_host().
DEFUN_ATTR | ( | asp_no_sctp_param_init | , |
asp_no_sctp_param_init_cmd | , | ||
"no sctp-param init " | ASP_SCTP_PARAM_INIT_FIELDS, | ||
NO_STR | ASP_SCTP_PARAM_INIT_DESC, | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_no_shutdown | , |
asp_no_shutdown_cmd | , | ||
"no shutdown" | , | ||
NO_STR "Terminates SCTP association; New associations will be rejected\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_no_tcp_param_keepalive | , |
asp_no_tcp_param_keepalive_cmd | , | ||
"no tcp-param keepalive" | , | ||
NO_STR | ASP_TCP_PARAM_KEEPALIVE_DESC, | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp::keepalive_enable, and osmo_ss7_asp::tcp.
DEFUN_ATTR | ( | asp_no_tcp_param_keepalive_cfg | , |
asp_no_tcp_param_keepalive_cfg_cmd | , | ||
"no tcp-param keepalive " | ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS, | ||
NO_STR | ASP_TCP_PARAM_KEEPALIVE_CFG_DESC, | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_no_tcp_param_user_timeout | , |
asp_no_tcp_param_user_timeout_cmd | , | ||
"no tcp-param user-timeout" | , | ||
NO_STR | ASP_TCP_PARAM_USER_TIMEOUT_DESC, | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_qos_clas | , |
asp_qos_class_cmd | , | ||
"qos-class " | QOS_CLASS_RANGE_STR, | ||
"Specify QoS Class of ASP\n" | QOS_CLASS_RANGE_HELP_STR, | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, and osmo_ss7_asp::qos_class.
DEFUN_ATTR | ( | asp_quirk | , |
asp_quirk_cmd | , | ||
"OVERWRITTEN" | , | ||
"OVERWRITTEN\n" | , | ||
CMD_ATTR_IMMEDIATE | |||
) |
References asp_quirk_names, osmo_ss7_asp::cfg, and osmo_ss7_asp::quirks.
DEFUN_ATTR | ( | asp_remote_ip | , |
asp_remote_ip_cmd | , | ||
"remote-ip " VTY_IPV46_CMD " " | [primary], | ||
"Specify Remote IP Address of ASP\n" "Remote IPv4 Address of ASP\n" "Remote IPv6 Address of ASP\n" "Set remote address as SCTP Primary Address\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_role | , |
asp_role_cmd | , | ||
"role (sg|asp|ipsp)" | , | ||
"Specify the xUA role for this ASP\n" "SG (Signaling Gateway)\n" "ASP (Application Server Process)\n" "IPSP (IP Signalling Point)\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_sctp_param_init | , |
asp_sctp_param_init_cmd | , | ||
"sctp-param init " ASP_SCTP_PARAM_INIT_FIELDS " <0-65535>" | , | ||
ASP_SCTP_PARAM_INIT_DESC "Value of the parameter\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, 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::num_ostreams_present, osmo_ss7_asp::num_ostreams_value, and osmo_ss7_asp::sctp_init.
DEFUN_ATTR | ( | asp_shutdown | , |
asp_shutdown_cmd | , | ||
"shutdown" | , | ||
"Terminates SCTP association; New associations will be rejected\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_tcp_param_keepalive_cfg | , |
asp_tcp_param_keepalive_cfg_cmd | , | ||
"tcp-param keepalive " ASP_TCP_PARAM_KEEPALIVE_CFG_FIELDS " <0-65535>" | , | ||
ASP_TCP_PARAM_KEEPALIVE_CFG_DESC "Value of the parameter\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
DEFUN_ATTR | ( | asp_tcp_param_keepalive_enabled | , |
asp_tcp_param_keepalive_enabled_cmd | , | ||
"tcp-param keepalive enabled" | , | ||
ASP_TCP_PARAM_KEEPALIVE_DESC "Enable TCP keep-alive\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp::keepalive_enable, and osmo_ss7_asp::tcp.
DEFUN_ATTR | ( | asp_tcp_param_user_timeout | , |
asp_tcp_param_user_timeout_cmd | , | ||
"tcp-param user-timeout <0-65535>" | , | ||
ASP_TCP_PARAM_USER_TIMEOUT_DESC "Value of the parameter\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, ss7_asp_lm_timer_names, SS7_ASP_LM_TIMERS_LEN, and osmo_ss7_asp::T_defs_lm.
References osmo_ss7_asp::cfg, ss7_asp_xua_timer_names, SS7_ASP_XUA_TIMERS_LEN, and osmo_ss7_asp::T_defs_xua.
DEFUN_ATTR | ( | asp_transport_role | , |
asp_transport_role_cmd | , | ||
"transport-role (client|server)" | , | ||
"Specify the transport layer role for this ASP\n" "Operate as a client; connect to a server\n" "Operate as a server; wait for client connections\n" | , | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp::is_server, and osmo_ss7_asp::trans_role_set_by_vty.
DEFUN_ATTR | ( | cs7_asp | , |
cs7_asp_cmd | , | ||
"asp NAME <0-65535> <0-65535> " | XUA_VAR_STR, | ||
"Configure Application Server Process\n" "Name of ASP\n" "Remote port number\n" "Local port number\n" | XUA_VAR_HELP_STR, | ||
CMD_ATTR_NODE_EXIT | |||
) |
References osmo_ss7_asp::cfg, osmo_ss7_asp::description, osmo_ss7_asp::explicit_shutdown_state_by_vty_since_node_enter, osmo_ss7_asp::inst, osmo_ss7_asp::is_server, osmo_ss7_asp::name, osmo_ss7_instance::name, osmo_ss7_asp_find2(), osmo_ss7_asp_find_or_create2(), OSMO_SS7_ASP_PROT_NONE, OSMO_SS7_ASP_ROLE_SG, parse_asp_proto(), parse_trans_proto(), osmo_ss7_asp::proto, osmo_ss7_asp::role, ss7_default_trans_proto_for_asp_proto(), and osmo_ss7_asp::trans_proto.
DEFUN_ATTR | ( | no_cs7_asp | , |
no_cs7_asp_cmd | , | ||
"no asp NAME" | , | ||
NO_STR "Disable Application Server Process\n" "Name of ASP\n" | , | ||
CMD_ATTR_IMMEDIATE | |||
) |
|
static |
References NULL, ss7_asp_lm_timer_defaults, and ss7_asp_lm_timer_names.
Referenced by ss7_vty_init_node_asp().
|
static |
References NULL, ss7_asp_xua_timer_defaults, and ss7_asp_xua_timer_names.
Referenced by ss7_vty_init_node_asp().
|
static |
References NULL.
Referenced by show_one_asp().
|
static |
References osmo_ss7_instance::asp_list, osmo_ss7_asp::inst, osmo_ss7_asp::list, NULL, osmo_ss7_asp_find_by_name(), osmo_ss7_instance_find(), and show_one_asp().
Referenced by DEFUN().
|
static |
References osmo_ss7_instance::asp_list, osmo_ss7_asp::inst, osmo_ss7_asp::list, NULL, osmo_ss7_asp_find_by_name(), osmo_ss7_instance_find(), and show_one_asp_assoc_status().
Referenced by DEFUN().
|
static |
References osmo_ss7_instance::asp_list, osmo_ss7_asp::inst, osmo_ss7_asp::list, NULL, osmo_ss7_asp_find_by_name(), osmo_ss7_instance_find(), and show_one_asp_remaddr().
Referenced by DEFUN().
|
static |
References as_list_for_asp(), osmo_ss7_asp::cfg, osmo_ss7_asp::fi, get_sockname_buf(), osmo_ss7_asp::is_server, osmo_ss7_asp::local, osmo_ss7_asp::name, osmo_ss7_asp_protocol_vals, osmo_ss7_asp_role_names, osmo_ss7_asp::proto, osmo_ss7_asp::remote, osmo_ss7_asp::role, ss7_asp_get_fd(), ss7_asp_peer_snprintf(), and osmo_ss7_asp::trans_proto.
Referenced by show_asp().
|
static |
References osmo_ss7_asp::cfg, osmo_ss7_asp::name, show_one_asp_assoc_status_tcp(), and osmo_ss7_asp::trans_proto.
Referenced by show_asp_assoc_status().
|
static |
References osmo_ss7_asp::cfg, len, osmo_ss7_asp::name, ss7_asp_get_fd(), and tcp_info_state_values.
Referenced by show_one_asp_assoc_status().
|
static |
References osmo_ss7_asp::cfg, osmo_ss7_asp::name, show_one_asp_remaddr_tcp(), and osmo_ss7_asp::trans_proto.
Referenced by show_asp_remaddr().
|
static |
References osmo_ss7_asp::cfg, len, osmo_ss7_asp::name, ss7_asp_get_fd(), and tcp_info_state_values.
Referenced by show_one_asp_remaddr().
void ss7_vty_init_node_asp | ( | void | ) |
References asp_node, asp_quirk_descs, asp_quirk_names, g_ctx, gen_asp_timer_lm_cmd_strs(), gen_asp_timer_xua_cmd_strs(), and NULL.
Referenced by vty_init_shared().
int ss7_vty_node_asp_go_parent | ( | struct vty * | vty | ) |
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::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::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().
|
static |
References osmo_ss7_asp::cfg, ss7_asp_lm_timer_names, and osmo_ss7_asp::T_defs_lm.
Referenced by ss7_vty_write_one_asp().
|
static |
References osmo_ss7_asp::cfg, ss7_asp_xua_timer_names, and osmo_ss7_asp::T_defs_xua.
Referenced by ss7_vty_write_one_asp().
|
static |
Referenced by ss7_vty_init_node_asp().
|
static |
Referenced by ss7_vty_init_node_asp().
|
static |
Referenced by DEFUN_ATTR(), ss7_vty_init_node_asp(), and ss7_vty_write_one_asp().
|
static |
Referenced by show_one_asp_assoc_status_tcp(), and show_one_asp_remaddr_tcp().