diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-29 18:44:39 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-29 18:44:39 +0800 |
commit | c94b9c4eb4ab6a5165a325d8f250d93da29df6d9 (patch) | |
tree | ffeaa62ec3fbd1d0372e9feda42e20cbcc6af837 /openbsc/include | |
parent | b5fa05ff416fc7244f6a22b2b0d62890fdea3184 (diff) |
bsc_grace: Add a new per network check to decide if new connections are allowed
In case of an ordered RF shutdown we can enter a grace period
where no new RF connections are allowed but active connections
will stay alive until the RF is switched off.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/Makefile.am | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/bsc_msc_grace.h | 29 |
2 files changed, 31 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/Makefile.am b/openbsc/include/openbsc/Makefile.am index e4d1107c1..fdf2f42c7 100644 --- a/openbsc/include/openbsc/Makefile.am +++ b/openbsc/include/openbsc/Makefile.am @@ -6,7 +6,8 @@ noinst_HEADERS = abis_nm.h abis_rsl.h db.h gsm_04_08.h gsm_data.h \ bsc_rll.h mncc.h transaction.h ussd.h gsm_04_80.h \ silent_call.h mgcp.h meas_rep.h rest_octets.h \ system_information.h handover.h mgcp_internal.h \ - vty.h bssap.h bsc_msc.h bsc_nat.h bsc_msc_rf.h + vty.h bssap.h bsc_msc.h bsc_nat.h bsc_msc_rf.h \ + bsc_msc_grace.h openbsc_HEADERS = gsm_04_08.h meas_rep.h bsc_api.h openbscdir = $(includedir)/openbsc diff --git a/openbsc/include/openbsc/bsc_msc_grace.h b/openbsc/include/openbsc/bsc_msc_grace.h new file mode 100644 index 000000000..31a092533 --- /dev/null +++ b/openbsc/include/openbsc/bsc_msc_grace.h @@ -0,0 +1,29 @@ +/* + * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 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 BSC_MSC_GRACE_H +#define BSC_MSC_GRACE_H + +#include "gsm_data.h" + +int bsc_grace_allow_new_connection(struct gsm_network *network); + +#endif |