aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_nm.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-14 02:08:35 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-14 02:08:35 +0800
commit6d2b66e89a9513c206ec76274f148cf65b06996d (patch)
treec20a739f8ae3b3bc885c3d419993969bf7dd7ae3 /openbsc/src/abis_nm.c
parent4f448c97ebc8dae095e109965ec038601125a7c8 (diff)
abis_nm: Create a signal data structure for the NACK message
Provide the message type and the msgb of the NACK message.
Diffstat (limited to 'openbsc/src/abis_nm.c')
-rw-r--r--openbsc/src/abis_nm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c
index 848755625..6f112e189 100644
--- a/openbsc/src/abis_nm.c
+++ b/openbsc/src/abis_nm.c
@@ -966,6 +966,7 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
return abis_nm_rcvmsg_sw(mb);
if (is_in_arr(mt, nacks, ARRAY_SIZE(nacks))) {
+ struct nm_nack_signal_data nack_data;
struct tlv_parsed tp;
debugp_foh(foh);
@@ -979,7 +980,9 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
else
DEBUGPC(DNM, "\n");
- dispatch_signal(SS_NM, S_NM_NACK, (void*) &mt);
+ nack_data.msg = mb;
+ nack_data.mt = mt;
+ dispatch_signal(SS_NM, S_NM_NACK, &nack_data);
return 0;
}
#if 0