aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2023-11-22 13:14:25 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2023-11-22 13:14:25 +0100
commit20aef4de28923caf6d6b14c95263d9e05758a8c0 (patch)
tree2bc1728b6ad6e1a2bcb19ba5dcde6bd8840a18c0
parente746b0bef61a3d321fc4867657f9d4ddebbb6dc3 (diff)
sgsn_vty: Fix output in config_write_sgsn
The encryption uea option was missing Change-Id: I2c81ced87c53d69a94b3894441323201f81f1a76
-rw-r--r--src/sgsn/sgsn_vty.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sgsn/sgsn_vty.c b/src/sgsn/sgsn_vty.c
index b31fb5968..e69307fb1 100644
--- a/src/sgsn/sgsn_vty.c
+++ b/src/sgsn/sgsn_vty.c
@@ -282,6 +282,15 @@ static int config_write_sgsn(struct vty *vty)
vty_out(vty, "%s", VTY_NEWLINE);
}
+ if (g_cfg->uea_encryption_mask != 0) {
+ vty_out(vty, " encryption uea");
+
+ for (i = 0; i < _OSMO_UTRAN_UEA_NUM; i++)
+ if (g_cfg->uea_encryption_mask >> i & 1)
+ vty_out(vty, " %u", i);
+
+ vty_out(vty, "%s", VTY_NEWLINE);
+ }
if (g_cfg->crypt_cipher_plugin_path)
vty_out(vty, "encryption cipher-plugin-path %s%s", g_cfg->crypt_cipher_plugin_path, VTY_NEWLINE);
if (g_cfg->sgsn_ipa_name)