aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-17 17:37:16 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-15 11:27:28 +0100
commited0374ffebd502677dedea39ba18ccb95ed4c652 (patch)
tree8964d7cf93fb23e3390febebe9c0722bad45c6c5
parentba36bf4c5d78bb1469d259dfae958496d96ae48c (diff)
bsc: Introduce an authenticated signal for the MSC connection
Send the signal whenever a MSC appears to be authenticated.
-rw-r--r--openbsc/include/openbsc/signal.h1
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_msc.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/signal.h b/openbsc/include/openbsc/signal.h
index fd13ac719..39319f1c9 100644
--- a/openbsc/include/openbsc/signal.h
+++ b/openbsc/include/openbsc/signal.h
@@ -219,6 +219,7 @@ struct lchan_signal_data {
enum signal_msc {
S_MSC_LOST,
S_MSC_CONNECTED,
+ S_MSC_AUTHENTICATED,
};
struct osmo_msc_data;
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_msc.c b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
index a97968175..5517d3080 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_msc.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
@@ -422,12 +422,16 @@ static void initialize_if_needed(struct bsc_msc_connection *conn)
static void send_id_get_response(struct osmo_msc_data *data, int fd)
{
+ struct msc_signal_data sig;
struct msgb *msg;
msg = bsc_msc_id_get_resp(data->bsc_token);
if (!msg)
return;
msc_queue_write(data->msc_con, msg, IPAC_PROTO_IPACCESS);
+
+ sig.data = data;
+ osmo_signal_dispatch(SS_MSC, S_MSC_AUTHENTICATED, &sig);
}
int osmo_bsc_msc_init(struct osmo_msc_data *data)