aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfilter
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 12:50:45 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 12:50:45 +0200
commitd99182c01037f4dd14fb72b2b06497e0c1bebb49 (patch)
treead07a3506db46fb85ea221983a5bbfadb744b66d /src/libfilter
parent1e75d131c99846cff248e572040067f4b885d758 (diff)
bsc_vty: Write access list entries when storing bsc config
Diffstat (limited to 'src/libfilter')
-rw-r--r--src/libfilter/bsc_msg_vty.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libfilter/bsc_msg_vty.c b/src/libfilter/bsc_msg_vty.c
index 52e0da54c..bcee37e86 100644
--- a/src/libfilter/bsc_msg_vty.c
+++ b/src/libfilter/bsc_msg_vty.c
@@ -111,7 +111,7 @@ DEFUN(cfg_lst_imsi_deny,
return CMD_SUCCESS;
}
-void bsc_msg_acc_lst_write(struct vty *vty, struct bsc_msg_acc_lst *lst)
+static void bsc_msg_acc_lst_write_one(struct vty *vty, struct bsc_msg_acc_lst *lst)
{
struct bsc_msg_acc_lst_entry *entry;
@@ -127,6 +127,14 @@ void bsc_msg_acc_lst_write(struct vty *vty, struct bsc_msg_acc_lst *lst)
}
}
+void bsc_msg_acc_lst_write(struct vty *vty)
+{
+ struct bsc_msg_acc_lst *lst;
+ llist_for_each_entry(lst, _acc_lst, list) {
+ bsc_msg_acc_lst_write_one(vty, lst);
+ }
+}
+
void bsc_msg_lst_vty_init(void *ctx, struct llist_head *lst, int node)
{
_ctx = ctx;