diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-12-02 11:58:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-05 14:56:35 +0100 |
commit | f07c605361d21b7bc36b741297c6ecf8e4162782 (patch) | |
tree | 15014ef3734dda9166e88faab97007ab8b9851f3 /openbsc/include/openbsc/transaction.h | |
parent | 1f6cce772ef1aac0ef8a66a3327d0ed9d4572366 (diff) |
msc: Add net back pointer to gsm_trans
Currently the net pointer is obtained from trans->subscr->net. On the
other hand, the list gsm_trans object is managed by the net object.
This patch adds the back pointer to the structure and replaces all
trans->subscr->net by trans->net expressions. In trans_alloc() the
trans->net pointer is obtained from the subscr object.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/transaction.h')
-rw-r--r-- | openbsc/include/openbsc/transaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/transaction.h b/openbsc/include/openbsc/transaction.h index b6c859c71..b8a8ba291 100644 --- a/openbsc/include/openbsc/transaction.h +++ b/openbsc/include/openbsc/transaction.h @@ -14,6 +14,9 @@ struct gsm_trans { /* Entry in list of all transactions */ struct llist_head entry; + /* Back pointer to the netweork struct */ + struct gsm_network *net; + /* The protocol within which we live */ uint8_t protocol; |