gsm: Verify the MNCC_VERSION of the BSC/MS and close the socket on mismatch
[lcr.git] / mncc.h
diff --git a/mncc.h b/mncc.h
index 25af62a..16509bd 100644 (file)
--- a/mncc.h
+++ b/mncc.h
@@ -62,6 +62,8 @@
 #define GSM_TCH_FRAME_AMR      0x0303
 #define GSM_BAD_FRAME          0x03ff
 
+#define MNCC_SOCKET_HELLO      0x0400
+
 #define GSM_MAX_FACILITY       128
 #define GSM_MAX_SSVERSION      128
 #define GSM_MAX_USERUSER       128
@@ -201,3 +203,8 @@ struct gsm_mncc_rtp {
 };
 
 
+#define MNCC_SOCK_VERSION      1
+struct gsm_mncc_hello {
+       u_int32_t       msg_type;
+       u_int32_t       version;
+};