aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/tlv.h
AgeCommit message (Collapse)AuthorFilesLines
2014-08-18TLV: add TLVP_PRES_LEN() definition to check for existance + minimum lengthHarald Welte1-0/+3
This is an import from osmo-bts where it was introduced in 6b561bb7ba5f10c5fd96542a7e42de2822352a67
2014-06-16include: Switch to #pragma once patternSylvain Munaut1-4/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-12-18Add tlvp_val16_unal() / tlvp_val32_unal() to align 16 and 32 bit valuesAndreas Eversberg1-0/+24
This is required for CPUs < armv6, to access 16 and 32 values at right memory locations.
2012-07-14TLV: add new "vTvLV" type for GANHarald Welte1-1/+97
This new TLV type is specific to TS 44.318. Contrary to the TvLV type of TS 08.16/08.18, it has an inverted meaning of the extension (0x80) bit: * if the extension bit is not set, 1-byte length * if the extension bit is set, 2-byte length Futhermore, it has support for variable-length tags, where the tag part can be optionally two bytes in length. As this esoteric option hasn't been seen in the wild yet, we only add encoding support but skip decoding for now.
2012-04-18doc: Fix the Doxygen section endingsSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-22TLV/msgb: Return first byte of newly-pushed data from msgb_*_push()Harald Welte1-14/+28
The msgb_*_push() functions erroneously returned the firsrt byte after newly-pushed information, which makes no sense at all.
2011-08-17doxygen: Add documentation about TLV parserHarald Welte1-13/+58
2011-07-16gsm 04.80: fix typo (256, not 265!)Harald Welte1-2/+2
This was introduced by me in commit 79599ba0eb7a9aeaeb9dfbbf4881f0633724a471 Thanks to Alexander Huemer for detecting it
2011-07-16tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xffHarald Welte1-2/+2
If we encounter a tag with 0xFF, we overflow our existing tlv_parse array definitions. Warning: this breaks ABI
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]0.2.0Pablo Neira Ayuso1-0/+260
This patch moves all GSM-specific definitions to include/osmocom/gsm. Moreover, the headers in include/osmocore/ have been moved to include/osmocom/core. This has been proposed by Harald Welte and Sylvain Munaunt. Tested with `make distcheck'. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>