aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-04-06 20:26:25 +0200
committerHarald Welte <laforge@gnumonks.org>2019-04-06 20:26:25 +0200
commit3e03bc2997c291ef601dd048c203be8513a6b469 (patch)
treec9207364276def0e940c82cb371bd72fdb0a513d
parent02c5e9d1d0b099ecd2e026cbccb3ebc736291bef (diff)
ipa_keepalive_fsm: Suppress error messages for INIT -> INIT transition
If we receive an OSMO_IPA_KA_E_STOP in INIT state, we are trying to re-enter INIT, which is not permitted as per the FSM definition. Adding this permission avoids the below error message from hitting the logs every time this happens: <0003> input/ipa_keepalive.c:158 IPA-KEEPALIVE(server)[0x612000000520]{INIT}: transition to state INIT not permitted! Change-Id: I8db2f2e708fc4fbb81f5019973098a80e8f540d2
-rw-r--r--src/input/ipa_keepalive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/ipa_keepalive.c b/src/input/ipa_keepalive.c
index 6467720..81b5a26 100644
--- a/src/input/ipa_keepalive.c
+++ b/src/input/ipa_keepalive.c
@@ -167,7 +167,7 @@ static const struct osmo_fsm_state ipa_keepalive_states[] = {
[OSMO_IPA_KA_S_INIT] = {
.name = "INIT",
.in_event_mask = S(OSMO_IPA_KA_E_START),
- .out_state_mask = S(OSMO_IPA_KA_S_WAIT_RESP),
+ .out_state_mask = S(OSMO_IPA_KA_S_WAIT_RESP) | S(OSMO_IPA_KA_S_INIT),
.action = ipa_ka_init,
},
[OSMO_IPA_KA_S_IDLE] = {