diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-07 15:01:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-10 11:48:35 +0200 |
commit | e2d1cc8b0ece7c0475cee6e23634bbffd080b6a2 (patch) | |
tree | 0d53328a9c9206ffc739f65a3d624f15d6f77cd5 /src/xua_asp_fsm.c | |
parent | 082dc7f170474226f3f3805069f868c3d346724e (diff) |
send M-SCTP_ESTABLISH.ind to Layer Manager
Change-Id: I2904f8ebd97036690ba8a9525b31354c0252123b
Diffstat (limited to 'src/xua_asp_fsm.c')
-rw-r--r-- | src/xua_asp_fsm.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c index e16e26a..1570bc9 100644 --- a/src/xua_asp_fsm.c +++ b/src/xua_asp_fsm.c @@ -109,15 +109,23 @@ void xua_asp_send_xlm_prim(struct osmo_ss7_asp *asp, struct osmo_xlm_prim *prim) } /* wrapper around send_xlm_prim for primitives without data */ -static void send_xlm_prim_simple(struct osmo_fsm_inst *fi, +void xua_asp_send_xlm_prim_simple(struct osmo_ss7_asp *asp, enum osmo_xlm_prim_type prim_type, enum osmo_prim_operation op) { struct osmo_xlm_prim *prim = xua_xlm_prim_alloc(prim_type, op); - struct xua_asp_fsm_priv *xafp = fi->priv; if (!prim) return; - xua_asp_send_xlm_prim(xafp->asp, prim); + xua_asp_send_xlm_prim(asp, prim); +} + +static void send_xlm_prim_simple(struct osmo_fsm_inst *fi, + enum osmo_xlm_prim_type prim_type, + enum osmo_prim_operation op) +{ + struct xua_asp_fsm_priv *xafp = fi->priv; + struct osmo_ss7_asp *asp = xafp->asp; + xua_asp_send_xlm_prim_simple(asp, prim_type, op); } /* ask the xUA implementation to transmit a specific message */ |