msgb: add ->dst attribute to store routing information
authorPablo Neira Ayuso <pablo@gnumonks.org>
Thu, 7 Jul 2011 17:46:44 +0000 (19:46 +0200)
committerHarald Welte <laforge@gnumonks.org>
Mon, 18 Jul 2011 15:00:08 +0000 (17:00 +0200)
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

index 58976f7..08dfaac 100644 (file)
@@ -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;