aboutsummaryrefslogtreecommitdiffstats
path: root/src/sccp_vty.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-05-10 01:58:42 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-05-10 02:00:25 +0200
commitd5139548f237bfab984ac0e0ca3406c42cbd895c (patch)
tree49524827be772aac887f0b52c52905a920b8316c /src/sccp_vty.c
parent42ebd023b7828e01604edcc762850046e89cc20c (diff)
add osmo_sccp_set_max_optional_data()
So far, the optional data limit can only be modified via cs7 VTY, because struct osmo_sccp_instance is private. Provide public API to set this limit from C. Change-Id: If3d22a0f65a7ed0be043027652402b32c356e322
Diffstat (limited to 'src/sccp_vty.c')
-rw-r--r--src/sccp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sccp_vty.c b/src/sccp_vty.c
index 90fb914..dda3ff0 100644
--- a/src/sccp_vty.c
+++ b/src/sccp_vty.c
@@ -183,7 +183,7 @@ DEFUN_ATTR(sccp_max_optional_data, sccp_max_optional_data_cmd,
int val;
if (!strcmp(argv[0], "standard"))
- val = SCCP_MAX_OPTIONAL_DATA;
+ val = -1;
else
val = atoi(argv[0]);
@@ -193,7 +193,7 @@ DEFUN_ATTR(sccp_max_optional_data, sccp_max_optional_data_cmd,
return CMD_WARNING;
}
- ss7->sccp->max_optional_data = val;
+ osmo_sccp_set_max_optional_data(ss7->sccp, val);
return CMD_SUCCESS;
}