aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-18 10:14:54 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-03 18:45:39 +0100
commit131ab36e3a0455d406062c1549f864d728bc90d6 (patch)
treefd7f25341bf6d75d5cae620dc7d85e410540b0ba /src/common/bts.c
parent2ed116efeca67987257d4c2d95fd3c9ac873d57d (diff)
abis: Add a queue of OML messages
When the oml_link is down or not yet established, we currently lost any OML messages that were scheduled for transmission to the BSC. Let's prevent that by keeping a queue of OML messages, which is drained at the time the OML link comes up again.
Diffstat (limited to 'src/common/bts.c')
-rw-r--r--src/common/bts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index 56d260d7..43f4c255 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -164,6 +164,7 @@ int bts_init(struct gsm_bts *bts)
}
INIT_LLIST_HEAD(&btsb->smscb_state.queue);
+ INIT_LLIST_HEAD(&btsb->oml_queue);
return rc;
}