diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-01 12:59:34 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-01 12:59:34 +0100 |
commit | 8c353991ed4b28b6cd9351c068a9aba1290dbd05 (patch) | |
tree | 1c696bcee91afa2a8a22d94c8f976a276810095b /src/shared/libosmocore/include/osmocore/msgb.h | |
parent | e03b8de3d49120a07a3feb27b60118fbc6f3f4df (diff) | |
parent | 00096acb8fbbf76b4fd8a223a2684df6c370d9f9 (diff) |
Merge commit '00096acb8fbbf76b4fd8a223a2684df6c370d9f9'
Diffstat (limited to 'src/shared/libosmocore/include/osmocore/msgb.h')
-rw-r--r-- | src/shared/libosmocore/include/osmocore/msgb.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/shared/libosmocore/include/osmocore/msgb.h b/src/shared/libosmocore/include/osmocore/msgb.h index 131f920a..7de242b2 100644 --- a/src/shared/libosmocore/include/osmocore/msgb.h +++ b/src/shared/libosmocore/include/osmocore/msgb.h @@ -35,9 +35,22 @@ struct msgb { struct gsm_bts_trx *trx; struct gsm_lchan *lchan; + /* the Layer1 header (if any) */ + unsigned char *l1h; + /* the A-bis layer 2 header: OML, RSL(RLL), NS */ unsigned char *l2h; + /* the layer 3 header. For OML: FOM; RSL: 04.08; GPRS: BSSGP */ unsigned char *l3h; - unsigned char *smsh; + + /* the layer 4 header */ + union { + unsigned char *smsh; + unsigned char *llch; + }; + + /* the layer 5 header, GPRS: GMM header */ + unsigned char *gmmh; + uint32_t tlli; uint16_t data_len; uint16_t len; @@ -92,7 +105,7 @@ static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len) } static inline int msgb_tailroom(const struct msgb *msgb) { - return (msgb->data + msgb->data_len) - msgb->tail; + return (msgb->head + msgb->data_len) - msgb->tail; } /* increase the headroom of an empty msgb, reducing the tailroom */ |