aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-07-07 19:46:44 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-18 17:00:08 +0200
commit29cbf618e3483d1c16b919bc59c470cfa462d1d7 (patch)
treeba85db0581637cec265688c5b8f65a84410f5dcc
parent199f37723bfef9fb5e8d0f01729adb21e11f0638 (diff)
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.
-rw-r--r--include/osmocom/core/msgb.h3
1 files changed, 3 insertions, 0 deletions
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;