From 106f547733450afda1ddbd7e886dc8c902fed4d4 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 4 Nov 2014 10:08:37 +0100 Subject: sgsn: Add 'acl-only' authentication policy Currently the VTY 'auth-policy' command results in setting or clearing the acl_enabled flag. This also enables the matching of the MCC/MNC prefix of the IMSI. This patch adds an additional policy 'acl-only' which disables the MCC/MNC matching and relies on the ACL only. Sponsored-by: On-Waves ehf --- openbsc/include/openbsc/sgsn.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/sgsn.h') diff --git a/openbsc/include/openbsc/sgsn.h b/openbsc/include/openbsc/sgsn.h index f7af7509b..33bc72f9d 100644 --- a/openbsc/include/openbsc/sgsn.h +++ b/openbsc/include/openbsc/sgsn.h @@ -7,6 +7,12 @@ #include #include +enum sgsn_auth_policy { + SGSN_AUTH_POLICY_OPEN, + SGSN_AUTH_POLICY_CLOSED, + SGSN_AUTH_POLICY_ACL_ONLY +}; + struct sgsn_config { /* parsed from config file */ @@ -16,7 +22,7 @@ struct sgsn_config { /* misc */ struct gprs_ns_inst *nsi; - int acl_enabled; + enum sgsn_auth_policy auth_policy; struct llist_head imsi_acl; }; -- cgit v1.2.3