summaryrefslogtreecommitdiffstats
path: root/src/mtp2_lsc.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-19 22:50:39 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-19 22:50:39 +0100
commit7098497b89f5ce113f8c8792b2ed16ab116da6ab (patch)
tree6eaf5f0d2e9ed3824683f94d3fc0c701a0b5a83a /src/mtp2_lsc.erl
parent4055baacc880f6570c341f7074791455276f58e0 (diff)
MTP2 LSC: pass-through of primitives from LSC into IAC during initial alignment
Diffstat (limited to 'src/mtp2_lsc.erl')
-rw-r--r--src/mtp2_lsc.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mtp2_lsc.erl b/src/mtp2_lsc.erl
index 459d77b..9bcce0d 100644
--- a/src/mtp2_lsc.erl
+++ b/src/mtp2_lsc.erl
@@ -190,9 +190,12 @@ initial_alignment(alignment_not_possible, LoopDat) ->
send_to(txc, si_os, LoopDat),
{next_state, out_of_service, LoopDat#lsc_state{local_proc_out=0, emergency=0}};
-% ignore
+% forward into IAC sub-state-machine
initial_alignment(What, LoopDat) when
- What == si_n; What == si_e; What == si_o; What == si_os ->
+ What == si_n; What == si_e; What == si_o; What == si_os;
+ What == fisu_msu_received ->
+ Iac = LoopDat#lsc_state.iac_pid,
+ gen_fsm:send_event(Iac, What),
{next_state, initial_alignment, LoopDat}.