From 29cbf618e3483d1c16b919bc59c470cfa462d1d7 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 7 Jul 2011 19:46:44 +0200 Subject: msgb: add ->dst attribute to store routing information This patch adds a new attribute to msgb objects. This new attribute will store a pointer to the routing information, in the case of the A-bis link, this will be used to store e1inp_sign_link instead of struct gsm_bts_trx. This deprecates msg->trx, that can be removed once all application are ported to use msg->dst. --- include/osmocom/core/msgb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/osmocom') diff --git a/include/osmocom/core/msgb.h b/include/osmocom/core/msgb.h index 58976f7f..08dfaac6 100644 --- a/include/osmocom/core/msgb.h +++ b/include/osmocom/core/msgb.h @@ -29,6 +29,9 @@ struct msgb { struct llist_head list; + /* routing information. */ + void *dst; + /* Part of which TRX logical channel we were received / transmitted */ /* FIXME: move them into the control buffer */ struct gsm_bts_trx *trx; -- cgit v1.2.3