abis_nm: Create a signal data structure for the NACK message
Provide the message type and the msgb of the NACK message.
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c
index 8487556..6f112e1 100644
--- a/openbsc/src/abis_nm.c
+++ b/openbsc/src/abis_nm.c
@@ -966,6 +966,7 @@
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 @@
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