From b8b4073e1842cd1de4b432e201865a96baa4c067 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 23 Jul 2009 21:58:40 +0200 Subject: look-up by (subscriber, protocol, transaction_id) tuple ... rather than the previous incomplete (lchan, transaction_id) tuple --- openbsc/src/transaction.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'openbsc/src/transaction.c') diff --git a/openbsc/src/transaction.c b/openbsc/src/transaction.c index f4cef28d2..9e7c7948f 100644 --- a/openbsc/src/transaction.c +++ b/openbsc/src/transaction.c @@ -31,13 +31,16 @@ static void *tall_trans_ctx; -struct gsm_trans *trans_find_by_id(struct gsm_lchan *lchan, u_int8_t trans_id) +struct gsm_trans *trans_find_by_id(struct gsm_subscriber *subscr, + u_int8_t proto, u_int8_t trans_id) { struct gsm_trans *trans; - struct gsm_network *net = lchan->ts->trx->bts->network; + struct gsm_network *net = subscr->net; llist_for_each_entry(trans, &net->trans_list, entry) { - if (trans->lchan == lchan && trans->transaction_id == trans_id) + if (trans->subscr == subscr && + trans->protocol == proto && + trans->transaction_id == trans_id) return trans; } return NULL; -- cgit v1.2.3