diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-07-27 15:08:53 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-07-27 16:00:08 +0800 |
commit | 4540ecdad75f620244634d5a2bf606a2a1cfc903 (patch) | |
tree | c407d8da04ea4c219a7b4b806b83c241eafa98c7 /src | |
parent | a540950cfbf3d59a095e837220f6e3d82d52bca4 (diff) |
sctp_m2ua: ignore ASP-UP.ind in case of passive/listen mode
Diffstat (limited to 'src')
-rw-r--r-- | src/sctp_m2ua.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sctp_m2ua.erl b/src/sctp_m2ua.erl index 039f1bd..f955e11 100644 --- a/src/sctp_m2ua.erl +++ b/src/sctp_m2ua.erl @@ -74,12 +74,16 @@ prim_up(#primitive{subsystem='M', gen_name = 'SCTP_ESTABLISH', spec_name = confi {ignore, LoopDat}; prim_up(#primitive{subsystem='M', gen_name = 'SCTP_ESTABLISH', spec_name = indication}, State, LoopDat) -> % indication in case of passive/listen mode - Asp = LoopDat#m2ua_state.asp_pid, {ignore, LoopDat}; prim_up(#primitive{subsystem='M', gen_name = 'ASP_UP', spec_name = confirm}, State, LoopDat) -> + % confirmation in case of active/connect mode Asp = LoopDat#m2ua_state.asp_pid, gen_fsm:send_event(Asp, osmo_util:make_prim('M','ASP_ACTIVE',request)), {ignore, LoopDat}; +prim_up(#primitive{subsystem='M', gen_name = 'ASP_UP', spec_name = indication}, State, LoopDat) -> + % indication in case of passive/listen mode + {ignore, LoopDat}; + prim_up(Prim, State, LoopDat) -> % default: forward all primitives to the user {ok, Prim, LoopDat}. |