aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess/ipaccess-config.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-12-30 09:00:01 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-12-30 09:00:01 +0100
commit1356c08cc8f22b4b75a845ebd96651577c984744 (patch)
treeab21be85e781d3e03eabcb069bfde7ae2df731b7 /openbsc/src/ipaccess/ipaccess-config.c
parent2e83782b1c185bd63544bdd74de2e5e4d965f981 (diff)
[abis] Dispatch a IPAC restart ACK/NACK signal
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
Diffstat (limited to 'openbsc/src/ipaccess/ipaccess-config.c')
-rw-r--r--openbsc/src/ipaccess/ipaccess-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c
index 29b9a9bf7..432179eb5 100644
--- a/openbsc/src/ipaccess/ipaccess-config.c
+++ b/openbsc/src/ipaccess/ipaccess-config.c
@@ -202,6 +202,14 @@ static int nm_sig_cb(unsigned int subsys, unsigned int signal,
return ipacc_msg_ack(ipacc_data->msg_type, ipacc_data->bts);
case S_NM_TEST_REP:
return test_rep(signal_data);
+ case S_NM_IPACC_RESTART_ACK:
+ printf("The BTS has acked the restart. Exiting.\n");
+ exit(0);
+ break;
+ case S_NM_IPACC_RESTART_NACK:
+ printf("The BTS has nacked the restart. Exiting.\n");
+ exit(0);
+ break;
default:
break;
}