aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/mncc.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-11 08:12:43 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-01 03:37:42 +0100
commit0094dc37387dd891e523cef783890a7ded656dd0 (patch)
tree6bb9b3c3c0c10b2910597e8fb40f41fae6164cd2 /include/osmocom/bsc/mncc.h
parentd76b228ea179fb5a59b87e863a303b220e24610c (diff)
Use helper function to check is an MNCC frame is data (speech/traffic)
Diffstat (limited to 'include/osmocom/bsc/mncc.h')
-rw-r--r--include/osmocom/bsc/mncc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmocom/bsc/mncc.h b/include/osmocom/bsc/mncc.h
index 0a4f2efb7..804766920 100644
--- a/include/osmocom/bsc/mncc.h
+++ b/include/osmocom/bsc/mncc.h
@@ -203,4 +203,12 @@ int mncc_sock_from_cc(struct gsm_network *net, struct msgb *msg);
int mncc_sock_init(struct gsm_network *gsmnet);
+#define mncc_is_data_frame(msg_type) \
+ (msg_type == GSM_TCHF_FRAME \
+ || msg_type == GSM_TCHF_FRAME_EFR \
+ || msg_type == GSM_TCHH_FRAME \
+ || msg_type == GSM_TCH_FRAME_AMR \
+ || msg_type == GSM_BAD_FRAME)
+
+
#endif