Add an option to allow everyone to the network.
This should move out of gsm_04_08 and the accept, reject
policy should be controllable by the higher levels.
diff --git a/src/bsc_hack.c b/src/bsc_hack.c
index ff90b85..623907c 100644
--- a/src/bsc_hack.c
+++ b/src/bsc_hack.c
@@ -669,6 +669,7 @@
printf(" -n --network-code number(MNC) \n");
printf(" -c --country-code number (MCC) \n");
printf(" -l --database db-name The database to use\n");
+ printf(" -a --authorize-everyone Allow everyone into the network.\n");
printf(" -h --help this text\n");
}
@@ -683,10 +684,11 @@
{"network-code", 1, 0, 'n'},
{"country-code", 1, 0, 'c'},
{"database", 1, 0, 'l'},
+ {"authorize-everyone", 0, 0, 'a'},
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "hc:n:d:s",
+ c = getopt_long(argc, argv, "hc:n:d:sa",
long_options, &option_index);
if (c == -1)
break;
@@ -711,6 +713,9 @@
case 'l':
database_name = strdup(optarg);
break;
+ case 'a':
+ gsm0408_allow_everyone(1);
+ break;
default:
/* ignore */
break;