libosmogb 1.11.0.2-4150.202502212026
Osmocom Gb library
|
VTY interface for our GPRS BSS Gateway Protocol (BSSGP) implementation. More...
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <arpa/inet.h>
#include <osmocom/core/msgb.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/select.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/gprs/gprs_ns.h>
#include <osmocom/gprs/gprs_bssgp.h>
#include <osmocom/gprs/gprs_bssgp_bss.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>
Macros | |
#define | BSSGP_STR "Show information about the BSSGP protocol\n" |
Variables | |
static struct cmd_node | bssgp_node |
VTY interface for our GPRS BSS Gateway Protocol (BSSGP) implementation.
#define BSSGP_STR "Show information about the BSSGP protocol\n" |
References bssgp_node, CFG_LOG_NODE, CONFIG_NODE, config_write_bssgp(), install_lib_element(), install_lib_element_ve(), and install_node().
References CMD_SUCCESS, VTY_NEWLINE, and vty_out().
Referenced by bssgp_vty_init().
DEFUN | ( | bvc_reset | , |
bvc_reset_cmd | , | ||
"bssgp bvc nsei <0-65535> bvci <0-65535> reset" | , | ||
"Initiate BVC RESET procedure for a given NSEI and BVCI\n" "Filter based on BSSGP Virtual Connection\n" "NSEI of the BVC to be filtered\n" "Network Service Entity Identifier (NSEI)\n" "BVCI of the BVC to be filtered\n" "BSSGP Virtual Connection Identifier (BVCI)\n" "Perform reset procedure\n" | |||
) |
References argv, BSSGP_CAUSE_OML_INTERV, bssgp_tx_bvc_reset(), btsctx_by_bvci_nsei(), bvci, CMD_SUCCESS, CMD_WARNING, DEFUN(), nsei, VTY_NEWLINE, and vty_out().
References CMD_SUCCESS, DEFUN(), L_BSSGP_NODE, and vty::node.
DEFUN | ( | logging_fltr_bvc | , |
logging_fltr_bvc_cmd | , | ||
"logging filter bvc nsei <0-65535> bvci <0-65535>" | , | ||
LOGGING_STR FILTER_STR "Filter based on BSSGP Virtual Connection\n" "NSEI of the BVC to be filtered\n" "Network Service Entity Identifier (NSEI)\n" "BVCI of the BVC to be filtered\n" "BSSGP Virtual Connection Identifier (BVCI)\n" | |||
) |
References argv, btsctx_by_bvci_nsei(), bvci, CMD_SUCCESS, CMD_WARNING, DEFUN(), log_set_bvc_filter(), log_tgt_mutex_lock, log_tgt_mutex_unlock, nsei, osmo_log_vty2tgt(), VTY_NEWLINE, and vty_out().
DEFUN | ( | show_bssgp | , |
show_bssgp_cmd | , | ||
"show bssgp" | , | ||
SHOW_STR | BSSGP_STR | ||
) |
References CMD_SUCCESS, DEFUN(), and dump_bssgp().
DEFUN | ( | show_bssgp_stats | , |
show_bssgp_stats_cmd | , | ||
"show bssgp stats" | , | ||
SHOW_STR BSSGP_STR "Include statistics\n" | |||
) |
References CMD_SUCCESS, DEFUN(), and dump_bssgp().
DEFUN | ( | show_bvc | , |
show_bvc_cmd | , | ||
"show bssgp nsei <0-65535> " | [stats], | ||
SHOW_STR BSSGP_STR "Show all BVCs on one NSE\n" "The NSEI\n" "Include Statistics\n" | |||
) |
References argc, argv, bssgp_bvc_ctxts, CMD_SUCCESS, DEFUN(), dump_bvc(), bssgp_bvc_ctx::list, llist_for_each_entry, bssgp_bvc_ctx::nsei, and nsei.
References bssgp_bvc_ctxts, dump_bvc(), bssgp_bvc_ctx::list, and llist_for_each_entry.
References bssgp_flow_control::bucket_counter, bssgp_flow_control::bucket_leak_rate, bssgp_flow_control::bucket_size_max, BVC_S_BLOCKED, bssgp_bvc_ctx::bvci, bssgp_bvc_ctx::cell_id, bssgp_bvc_ctx::ctrg, bssgp_bvc_ctx::fc, bssgp_flow_control::max_queue_depth, bssgp_bvc_ctx::nsei, osmo_rai_name(), bssgp_flow_control::queue_depth, bssgp_bvc_ctx::ra_id, bssgp_bvc_ctx::state, VTY_NEWLINE, vty_out(), and vty_out_rate_ctr_group().
Referenced by DEFUN(), and dump_bssgp().
|
static |
References log_target::filter_data, log_target::filter_map, and LOG_FLT_GB_BVC.
Referenced by DEFUN().
Referenced by bssgp_vty_init().