diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-04 11:42:08 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-09 10:10:25 +0200 |
commit | 1abfdc218e044b764b385921be921aa05364bf47 (patch) | |
tree | b3606eca5975f43ac23d402fc66de3096be34a37 /openbsc/src/gprs/gb_proxy_vty.c | |
parent | 7fb26c2943b46c9082d7615dc98095bf6bbe5905 (diff) |
gbproxy: Remove patch_mode, update initial checks
This patch removes the patch_mode feature including the related VTY
command patch-mode. Where sensible, the other configuration flags are
queried instead.
In addition, this initial checks in gbprox_process_bssgp_dl() and
gbprox_process_bssgp_ul() have been updated.
The patch mode feature has not been used and was increasingly
difficult to maintain.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_vty.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_vty.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c index 8bdc1accf..fd49b0179 100644 --- a/openbsc/src/gprs/gb_proxy_vty.c +++ b/openbsc/src/gprs/gb_proxy_vty.c @@ -50,17 +50,6 @@ static struct cmd_node gbproxy_node = { 1, }; -static const struct value_string patch_modes[] = { - {GBPROX_PATCH_DEFAULT, "default"}, - {GBPROX_PATCH_BSSGP, "bssgp"}, - {GBPROX_PATCH_LLC_ATTACH_REQ, "llc-attach-req"}, - {GBPROX_PATCH_LLC_ATTACH, "llc-attach"}, - {GBPROX_PATCH_LLC_GMM, "llc-gmm"}, - {GBPROX_PATCH_LLC_GSM, "llc-gsm"}, - {GBPROX_PATCH_LLC, "llc"}, - {0, NULL} -}; - static void gbprox_vty_print_peer(struct vty *vty, struct gbproxy_peer *peer) { struct gprs_ra_id raid; @@ -118,11 +107,6 @@ static int config_write_gbproxy(struct vty *vty) vty_out(vty, " tlli-list max-length %d%s", g_cfg->tlli_max_len, VTY_NEWLINE); - if (g_cfg->patch_mode != GBPROX_PATCH_DEFAULT) - vty_out(vty, " patch-mode %s%s", - get_value_string(patch_modes, g_cfg->patch_mode), - VTY_NEWLINE); - return CMD_SUCCESS; } @@ -415,25 +399,6 @@ DEFUN(cfg_gbproxy_tlli_list_no_max_len, } -DEFUN(cfg_gbproxy_patch_mode, - cfg_gbproxy_patch_mode_cmd, - "patch-mode (default|bssgp|llc-attach-req|llc-attach|llc-gmm|llc-gsm|llc)", - "Set patch mode\n" - "Use build-in default (best effort, try to patch everything)\n" - "Only patch BSSGP headers\n" - "Patch BSSGP headers and LLC Attach Request messages\n" - "Patch BSSGP headers and LLC Attach Request/Accept messages\n" - "Patch BSSGP headers and LLC GMM messages\n" - "Patch BSSGP headers, LLC GMM, and LLC GSM messages\n" - "Patch BSSGP headers and all supported LLC messages\n" - ) -{ - int val = get_string_value(patch_modes, argv[0]); - OSMO_ASSERT(val >= 0); - g_cfg->patch_mode = val; - return CMD_SUCCESS; -} - DEFUN(show_gbproxy, show_gbproxy_cmd, "show gbproxy [stats]", SHOW_STR "Display information about the Gb proxy\n" "Show statistics\n") { @@ -698,7 +663,6 @@ int gbproxy_vty_init(void) install_element(GBPROXY_NODE, &cfg_gbproxy_no_acquire_imsi_cmd); install_element(GBPROXY_NODE, &cfg_gbproxy_tlli_list_no_max_age_cmd); install_element(GBPROXY_NODE, &cfg_gbproxy_tlli_list_no_max_len_cmd); - install_element(GBPROXY_NODE, &cfg_gbproxy_patch_mode_cmd); return 0; } |