diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-02-24 22:52:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-02-24 22:52:58 +0100 |
commit | f7d797424a89a96a5d5f8c98528f8ba87100894f (patch) | |
tree | 4cff9e0f486e45f4d0b1e78a11c503ed56720d8f /include/osmocore/tlv.h | |
parent | ed71b8c5978ce6fe9d331b216ff7270fb9473d01 (diff) | |
parent | 3415d41a8cea9930a70daf0c7fb6a0009ca7f0a3 (diff) |
Merge remote branch 'origin/master'
Diffstat (limited to 'include/osmocore/tlv.h')
-rw-r--r-- | include/osmocore/tlv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocore/tlv.h b/include/osmocore/tlv.h index 14c9910d..c733dbc9 100644 --- a/include/osmocore/tlv.h +++ b/include/osmocore/tlv.h @@ -190,6 +190,13 @@ static inline uint8_t *msgb_tv16_push(struct msgb *msg, uint8_t tag, uint16_t va return tv16_put(buf, tag, val); } +static inline uint8_t *msgb_tvlv_push(struct msgb *msg, uint8_t tag, uint16_t len, + const uint8_t *val) +{ + uint8_t *buf = msgb_push(msg, TVLV_GROSS_LEN(len)); + return tvlv_put(buf, tag, len, val); +} + /* TLV parsing */ struct tlv_p_entry { |