aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-12 14:42:23 +0200
committerHarald Welte <laforge@gnumonks.org>2009-08-12 20:53:36 +0200
commit69de397ff406acb8a6ea23811c50d3af3a53acb0 (patch)
treeda064ee8fbb467f6ebcd4196265c39e3409fff26 /openbsc/include/openbsc/gsm_data.h
parenta29216b1e1a56867b6da2b5526b0bd44ea6c2c05 (diff)
add a authorization policy field to the network and VTY
this is not being used yet
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r--openbsc/include/openbsc/gsm_data.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index e995c1751..dd501d7cf 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -349,12 +349,19 @@ struct gsm_bts {
struct llist_head trx_list;
};
+enum gsm_auth_policy {
+ GSM_AUTH_POLICY_CLOSED, /* only subscribers authorized in DB */
+ GSM_AUTH_POLICY_ACCEPT_ALL, /* accept everyone, even if not authorized in DB */
+ GSM_AUTH_POLICY_TOKEN, /* accept first, send token per sms, then revoke authorization */
+};
+
struct gsm_network {
/* global parameters */
u_int16_t country_code;
u_int16_t network_code;
char *name_long;
char *name_short;
+ enum gsm_auth_policy auth_policy;
/* layer 4 */
int (*mncc_recv) (struct gsm_network *net, int msg_type, void *arg);
@@ -444,4 +451,8 @@ static inline int is_siemens_bts(struct gsm_bts *bts)
return 0;
}
+
+enum gsm_auth_policy gsm_auth_policy_parse(const char *arg);
+const char *gsm_auth_policy_name(enum gsm_auth_policy policy);
+
#endif