summaryrefslogtreecommitdiffstats
path: root/src/host/gsm48-andreas
diff options
context:
space:
mode:
authorAndreas Eversberg2010-03-27 11:00:57 +0100
committerAndreas Eversberg2010-03-27 11:08:47 +0100
commit66bb75afc20eef16bc2ebb54c47eaa8cff31604f (patch)
tree1994c12dd20233aeabf67b8c98b8f7b1cffe84d0 /src/host/gsm48-andreas
parentWork on Radio Ressource. (diff)
downloadosmocom-66bb75afc20eef16bc2ebb54c47eaa8cff31604f.tar.gz
osmocom-66bb75afc20eef16bc2ebb54c47eaa8cff31604f.tar.xz
osmocom-66bb75afc20eef16bc2ebb54c47eaa8cff31604f.zip
Added subscriber data. It is very uncomplete yet.
Diffstat (limited to 'src/host/gsm48-andreas')
-rw-r--r--src/host/gsm48-andreas/subscriber.c28
-rw-r--r--src/host/gsm48-andreas/subscriber.h46
2 files changed, 74 insertions, 0 deletions
diff --git a/src/host/gsm48-andreas/subscriber.c b/src/host/gsm48-andreas/subscriber.c
new file mode 100644
index 0000000..16a6d74
--- /dev/null
+++ b/src/host/gsm48-andreas/subscriber.c
@@ -0,0 +1,28 @@
+/*
+ * (C) 2010 by Andreas Eversberg <jolly@eversberg.eu>
+ *
+ * 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.
+ *
+ */
+
+int gsm_subscr_init(struct osmocom_ms *ms)
+{
+ struct gsm_subscriber *subcr = &ms->subscr;
+
+ INIT_LLIST_HEAD(&subscr->plmn_na);
+}
+
diff --git a/src/host/gsm48-andreas/subscriber.h b/src/host/gsm48-andreas/subscriber.h
new file mode 100644
index 0000000..47847f5
--- /dev/null
+++ b/src/host/gsm48-andreas/subscriber.h
@@ -0,0 +1,46 @@
+/*
+ * (C) 2010 by Andreas Eversberg <jolly@eversberg.eu>
+ *
+ * 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.
+ *
+ */
+
+struct gsm_plmn_na {
+ struct llist_head entry;
+ uint16_t mcc;
+ uint16_t mnc;
+}
+
+struct gsm_subsriber {
+ /* imsi */
+ uint8_t sim_valid;
+ uint16_t mcc;
+ uint16_t mnc;
+
+ /* stored PLMN */
+ uint8_t plmn_valid;
+ uint16_t plmn_mcc;
+ uint16_t plmn_mnc;
+ struct llist_head plmn_na;
+
+ /* access */
+ uint8_t barred_access;
+ uint8_t class_access[16];
+
+}
+
+