summaryrefslogtreecommitdiffstats
path: root/include/osmocore/gsm0808.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-15 10:10:39 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-15 10:10:39 +0200
commit280cd5153f1387c462fa93cd1a2ca77260015024 (patch)
tree992cd93859079cd9384a81fb5df6c7e5e089f0ba /include/osmocore/gsm0808.h
parent2c86c2a726a9736254d98f37e0bf21e1159db749 (diff)
Add GSM0808 utilities to Osmocore.
The code is coming from the on-waves/bsc-master branch.
Diffstat (limited to 'include/osmocore/gsm0808.h')
-rw-r--r--include/osmocore/gsm0808.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/osmocore/gsm0808.h b/include/osmocore/gsm0808.h
new file mode 100644
index 00000000..0ea78da4
--- /dev/null
+++ b/include/osmocore/gsm0808.h
@@ -0,0 +1,43 @@
+/* (C) 2009,2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2009,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 OSMOCORE_GSM0808_H
+#define OSMOCORE_GSM0808_H
+
+#include "tlv.h"
+
+struct msgb;
+
+struct msgb *gsm0808_create_layer3(struct msgb *msg, uint16_t netcode, uint16_t countrycode, int lac, int ci);
+struct msgb *gsm0808_create_reset(void);
+struct msgb *gsm0808_create_clear_complete(void);
+struct msgb *gsm0808_create_cipher_reject(uint8_t cause);
+struct msgb *gsm0808_create_classmark_update(const uint8_t *classmark, uint8_t length);
+struct msgb *gsm0808_create_sapi_reject(uint8_t link_id);
+struct msgb *gsm0808_create_assignment_failure(uint8_t cause, uint8_t *rr_cause);
+
+const struct tlv_definition *gsm0808_att_tlvdef();
+
+/* needs to be ported */
+#if 0
+struct msgb *bssmap_create_assignment_completed(struct gsm_lchan *lchan, uint8_t rr_cause);
+struct msgb *bssmap_create_cipher_complete(struct msgb *layer3);
+#endif
+
+#endif