diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-22 17:55:39 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-22 17:56:09 +0200 |
commit | d90834c42ada241efafe18ada8f4884d2fe52fd1 (patch) | |
tree | 63dc04da46202a3d66b12e0b10c7482bef58593f /src | |
parent | 052b8e8c958713a83e30c70764fd653902592e0d (diff) |
app: Make it possible to enable the forward only code
This change was either never implemented or has been lost at
some point in time. Allow to pass SCCP messages un-modified through
the A-link.
Diffstat (limited to 'src')
-rw-r--r-- | src/vty_interface.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c index e9326a9..09b796e 100644 --- a/src/vty_interface.c +++ b/src/vty_interface.c @@ -1059,6 +1059,24 @@ DEFUN(cfg_app_no_trunk_name, cfg_app_no_trunk_name_cmd, return CMD_SUCCESS; } +DEFUN(cfg_app_forward_only, cfg_app_forward_only_cmd, + "forward-only", + "Forward SCCP messages untouched to/from a IPA/SCCP connection\n") +{ + struct ss7_application *app = vty->index; + app->forward_only = 1; + return CMD_SUCCESS; +} + +DEFUN(cfg_app_no_forward_only, cfg_app_no_forward_only_cmd, + "no forward-only", + NO_STR "Forward SCCP messages untouched to/from a IPA/SCCP connection\n") +{ + struct ss7_application *app = vty->index; + app->forward_only = 0; + return CMD_SUCCESS; +} + static void install_defaults(int node) { install_default(node); @@ -1136,6 +1154,8 @@ void cell_vty_init(void) install_element(APP_NODE, &cfg_app_no_domain_name_cmd); install_element(APP_NODE, &cfg_app_trunk_name_cmd); install_element(APP_NODE, &cfg_app_no_trunk_name_cmd); + install_element(APP_NODE, &cfg_app_forward_only_cmd); + install_element(APP_NODE, &cfg_app_no_forward_only_cmd); cell_vty_init_cmds(); } |