From 406284e89797f66f3c339bea0b4ebb9cb788a6d1 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 10 Mar 2017 02:13:08 +0100 Subject: debug log: upon bumping a conn, say why it is kept Change-Id: I378af1fa06d8a45c01a80a381be143572e1dc41f --- openbsc/include/openbsc/gsm_subscriber.h | 6 +++++- openbsc/include/openbsc/transaction.h | 2 +- openbsc/include/openbsc/vlr.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index e53d0eea4..d88e32aa7 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -41,6 +41,9 @@ enum gsm_subscriber_update_reason { struct subscr_request { struct llist_head entry; + /* human readable label to be able to log pending request kinds */ + const char *label; + /* the callback data */ gsm_cbfn *cbfn; void *param; @@ -52,7 +55,8 @@ int subscr_update(struct vlr_subscr *vsub, int reason); * Paging handling with authentication */ struct subscr_request *subscr_request_conn(struct vlr_subscr *vsub, - gsm_cbfn *cbfn, void *param); + gsm_cbfn *cbfn, void *param, + const char *label); void subscr_remove_request(struct subscr_request *req); int subscr_rx_paging_response(struct msgb *msg, diff --git a/openbsc/include/openbsc/transaction.h b/openbsc/include/openbsc/transaction.h index a8df20baa..713d878f3 100644 --- a/openbsc/include/openbsc/transaction.h +++ b/openbsc/include/openbsc/transaction.h @@ -87,7 +87,7 @@ void trans_free(struct gsm_trans *trans); int trans_assign_trans_id(struct gsm_network *net, struct vlr_subscr *vsub, uint8_t protocol, uint8_t ti_flag); -int trans_has_conn(const struct gsm_subscriber_connection *conn); +struct gsm_trans *trans_has_conn(const struct gsm_subscriber_connection *conn); void trans_conn_closed(struct gsm_subscriber_connection *conn); #endif diff --git a/openbsc/include/openbsc/vlr.h b/openbsc/include/openbsc/vlr.h index 8cbd0c52a..33fdd3b88 100644 --- a/openbsc/include/openbsc/vlr.h +++ b/openbsc/include/openbsc/vlr.h @@ -155,6 +155,7 @@ struct vlr_subscr { struct { /* pending requests */ bool is_paging; + /* list of struct subscr_request */ struct llist_head requests; uint8_t lac; enum ran_type attached_via_ran; -- cgit v1.2.3