aboutsummaryrefslogtreecommitdiffstats
path: root/include/isup_types.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-09 17:08:06 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-10 13:22:42 +0100
commit03ba4f485bdbf79b9efce862940fd871e7b3dc72 (patch)
tree405f452c40d03eead4c1b9ab435962a4d3fc9652 /include/isup_types.h
parent58d0c24f03b75d31164f961e76e0414c6fbb2102 (diff)
isup: Start with isup support in the cellmgr.
Start parsing the ISUP messages. This just adds what we need to handle now and will not grow it a lot.
Diffstat (limited to 'include/isup_types.h')
-rw-r--r--include/isup_types.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/isup_types.h b/include/isup_types.h
new file mode 100644
index 0000000..51c5e79
--- /dev/null
+++ b/include/isup_types.h
@@ -0,0 +1,49 @@
+/*
+ * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2010 by On-Waves
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#ifndef isup_types_h
+#define isup_types_h
+
+#include <stdint.h>
+
+struct msgb;
+struct mtp_link;
+
+/* This is from Table 4/Q.763 */
+#define ISUP_MSG_GRS 0x17
+#define ISUP_MSG_GRA 0x29
+
+struct isup_msg_hdr {
+ uint16_t cic : 12,
+ spare : 4;
+ uint8_t msg_type;
+ uint8_t data[0];
+} __attribute__((packed));
+
+struct isup_msg_grs {
+ uint8_t pointer_int;
+};
+
+int mtp_link_forward_isup(struct mtp_link *link, struct msgb *msg, int sls);
+
+int isup_parse_grs(const uint8_t *data, uint8_t length);
+
+#endif