aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-10-21 14:12:46 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-06 21:49:18 +0100
commit347e7ba377d47aa4d585a627f0704055f31975e0 (patch)
tree06dbeae54356c303a9e9b97b0acfef2c3d7d1abf /openbsc/include
parent1491f2e7a9df870fb55eac1a229f59331c2242b3 (diff)
mncc: Introduce a hello packet that is sent to the client.
Send a hello packet down to the client with the version number of the MNCC interface. The hello structure might be extended to include the endianes, size of each structure, etc.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/mncc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mncc.h b/openbsc/include/openbsc/mncc.h
index 8c59fe2c6..9153d6574 100644
--- a/openbsc/include/openbsc/mncc.h
+++ b/openbsc/include/openbsc/mncc.h
@@ -96,6 +96,8 @@ struct gsm_call {
#define GSM_TCHF_FRAME 0x0300
#define GSM_TCHF_FRAME_EFR 0x0301
+#define MNCC_SOCKET_HELLO 0x0400
+
#define GSM_MAX_FACILITY 128
#define GSM_MAX_SSVERSION 128
#define GSM_MAX_USERUSER 128
@@ -158,6 +160,12 @@ struct gsm_data_frame {
unsigned char data[0];
};
+#define MNCC_SOCK_VERSION 1
+struct gsm_mncc_hello {
+ uint32_t msg_type;
+ uint32_t version;
+};
+
char *get_mncc_name(int value);
void mncc_set_cause(struct gsm_mncc *data, int loc, int val);
void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg);