diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-19 14:04:23 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-19 14:04:23 +0200 |
commit | 7af4962e071a69a48231abede1701ca65cb620fe (patch) | |
tree | 5f62a6bdc037e14b4418c19f76c0d0025d358dec /openbsc/src/gprs/gb_proxy_vty.c | |
parent | ab1d5626ace2adfb44ab2534098efa0076604b21 (diff) |
[SGSN] Gb Proxy: Simplify configuration
Almost all parameters about the SGSNs NS-VC can be specified in the NS
protocol node. All that needs to remain in the gbproxy config node
is "nsip sgsn nsei XXX".
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_vty.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_vty.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c index 7ee2833ed..4b71b1bd2 100644 --- a/openbsc/src/gprs/gb_proxy_vty.c +++ b/openbsc/src/gprs/gb_proxy_vty.c @@ -58,15 +58,8 @@ static int config_write_gbproxy(struct vty *vty) } vty_out(vty, " nsip bss local port %u%s", g_cfg->nsip_listen_port, VTY_NEWLINE); - ia.s_addr = htonl(g_cfg->nsip_sgsn_ip); - vty_out(vty, " nsip sgsn remote ip %s%s", inet_ntoa(ia), - VTY_NEWLINE); - vty_out(vty, " nsip sgsn remote port %u%s", g_cfg->nsip_sgsn_port, - VTY_NEWLINE); vty_out(vty, " nsip sgsn nsei %u%s", g_cfg->nsip_sgsn_nsei, VTY_NEWLINE); - vty_out(vty, " nsip sgsn nsvci %u%s", g_cfg->nsip_sgsn_nsvci, - VTY_NEWLINE); return CMD_SUCCESS; } @@ -104,31 +97,6 @@ DEFUN(cfg_nsip_bss_local_port, return CMD_SUCCESS; } - -DEFUN(cfg_nsip_sgsn_ip, - cfg_nsip_sgsn_ip_cmd, - "nsip sgsn remote ip A.B.C.D", - "Set the IP of the SGSN to which the proxy shall connect") -{ - struct in_addr ia; - - inet_aton(argv[0], &ia); - g_cfg->nsip_sgsn_ip = ntohl(ia.s_addr); - - return CMD_SUCCESS; -} - -DEFUN(cfg_nsip_sgsn_port, - cfg_nsip_sgsn_port_cmd, - "nsip sgsn remote port <0-65534>", - "Set the UDP port of the SGSN to which the proxy shall connect") -{ - unsigned int port = atoi(argv[0]); - - g_cfg->nsip_sgsn_port = port; - return CMD_SUCCESS; -} - DEFUN(cfg_nsip_sgsn_nsei, cfg_nsip_sgsn_nsei_cmd, "nsip sgsn nsei <0-65534>", @@ -140,17 +108,6 @@ DEFUN(cfg_nsip_sgsn_nsei, return CMD_SUCCESS; } -DEFUN(cfg_nsip_sgsn_nsvci, - cfg_nsip_sgsn_nsvci_cmd, - "nsip sgsn nsvci <0-65534>", - "Set the NSVCI to be used in the connection with the SGSN") -{ - unsigned int port = atoi(argv[0]); - - g_cfg->nsip_sgsn_nsvci = port; - return CMD_SUCCESS; -} - int gbproxy_vty_init(void) { install_element_ve(&show_gbproxy_cmd); @@ -162,10 +119,7 @@ int gbproxy_vty_init(void) install_element(GBPROXY_NODE, &ournode_end_cmd); install_element(GBPROXY_NODE, &cfg_nsip_bss_local_ip_cmd); install_element(GBPROXY_NODE, &cfg_nsip_bss_local_port_cmd); - install_element(GBPROXY_NODE, &cfg_nsip_sgsn_ip_cmd); - install_element(GBPROXY_NODE, &cfg_nsip_sgsn_port_cmd); install_element(GBPROXY_NODE, &cfg_nsip_sgsn_nsei_cmd); - install_element(GBPROXY_NODE, &cfg_nsip_sgsn_nsvci_cmd); return 0; } |