aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2010-08-25add header file for osmo_daemonize()0.1.18Harald Welte2-1/+7
2010-08-25logging: add missing include file changes for last commit (logfile)Harald Welte1-0/+5
2010-08-25logging: rename tgt_stdout to tgt_fileHarald Welte1-1/+1
2010-08-04Import gsm48_decode_freq_list() from osmocom-bb/layer230.1.16Harald Welte1-0/+10
This will enable us to use this function from OpenBSC / ipaccess-config
2010-08-04vty: Forward delcare the logging command.Holger Hans Peter Freyther1-0/+2
2010-07-30add new hexdump_nospc() function0.1.15Harald Welte1-0/+1
2010-07-30move hexdump() from logging.c to utils.cHarald Welte2-1/+1
2010-07-30Import 'hexparse' function from OpenBSC0.1.14Harald Welte1-0/+2
2010-07-25core/msgb: Use the new osmo_panic call to handle errorsSylvain Munaut1-4/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25core: Add some generic panic handlingSylvain Munaut2-1/+12
This also includes an option for a minimal 'infinite loop' type panic that could be required for embedded target that don't have abort() or fprintf() Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-25osmocore: Add utility function rsl_chan_nr_str to RSLSylvain Munaut1-0/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-23msgb: Avoid warnings that the string might contain %s or such..Holger Hans Peter Freyther1-1/+1
2010-07-23gsm0808: Why should there be a lchan in the parameter...Holger Hans Peter Freyther1-1/+1
2010-07-23gsm0808: Import unaligned mem access fix from on-waves/bsc-masterHolger Hans Peter Freyther1-1/+1
2010-07-23gsm_utils: Move the gsm_7bit_alphabet into the impl and make it staticHolger Hans Peter Freyther1-28/+0
2010-07-22msgb: Check for available headroom/tailroom and abort() if we violate itHarald Welte1-4/+31
2010-07-21gsm_04_12.h: Add beginning of structs for SMS CBHolger Hans Peter Freyther2-1/+33
I am trying to understand the RSL and GSM 04.12 spec to implement CBS for OpenBSC...
2010-07-20* rewrite GSM 7bit default encoding/decoding based on a lookup table as the ↵Nico Golde1-0/+28
previous code produced wrong encodings for certain characters.
2010-07-15Added crc16 from linux kernel.Ingo Albrecht2-1/+35
2010-07-13[RSL] split rsl_rll_push_l3() L3 LV pushign and rsl_rll_push_hdr()Harald Welte2-0/+15
This allows us to generate RSLms messages that have some non-standard IEs between the RSL/RLL common header and the L3 INFO IE.
2010-07-12Added new IE definitions to gsm_04_08.h of libosmocore.Andreas Eversberg2-20/+491
Also added RR and MM TLV tables to gsm48.c [import from accidential commit to osmocom-bb.git]
2010-07-12Added single octet TV (type + value) to libosmocore.Andreas Eversberg1-0/+1
In case of a single octet, the upper nibble is the type, the lower nibble carries the value. [import from accidentially committed changes to osmocom-bb.git] diff --git a/src/shared/libosmocore/include/osmocore/tlv.h b/src/shared/libosmocore/include/osmocore/tlv.h index c733dbc..4cfce87 100644 --- a/src/shared/libosmocore/include/osmocore/tlv.h +++ b/src/shared/libosmocore/include/osmocore/tlv.h @@ -212,6 +212,7 @@ enum tlv_type { TLV_TYPE_TLV, TLV_TYPE_TL16V, TLV_TYPE_TvLV, + TLV_TYPE_SINGLE_TV }; struct tlv_def { diff --git a/src/shared/libosmocore/src/tlv_parser.c b/src/shared/libosmocore/src/tlv_parser.c index 407e57a..bbef7a9 100644 --- a/src/shared/libosmocore/src/tlv_parser.c +++ b/src/shared/libosmocore/src/tlv_parser.c @@ -36,6 +36,14 @@ int tlv_parse_one(uint8_t *o_tag, uint16_t *o_len, const uint8_t **o_val, tag = *buf; *o_tag = tag; + /* single octet TV IE */ + if (def->def[tag & 0xf0].type == TLV_TYPE_SINGLE_TV) { + *o_tag = tag & 0xf0; + *o_val = buf; + *o_len = 1; + return 1; + } + /* FIXME: use tables for knwon IEI */ switch (def->def[tag].type) { case TLV_TYPE_T:
2010-06-30GPRS: Add 'input' generator functions for GPRS cipher algorithmHarald Welte1-0/+6
2010-06-30Add support for plugins (and specifically GPRS encryption plugins)Harald Welte5-2/+62
2010-06-29[gsmtap] add new gsmtap_makemsg() functionHarald Welte1-0/+5
This generates a gsmtap message without actually enqueueing to a bsc_select style queue.
2010-06-29Add gsmtap utility functions to libosmocore0.1.13Harald Welte2-1/+17
This is imported from OsmocomBB/Layer23
2010-06-25[RSL] Added special RSL message types for mobile sideAndreas Eversberg1-0/+4
- suspension DL - resume DL - re-establish DL
2010-06-25[gsm48] fix typo in struct gsm48_req_refAndreas Eversberg1-1/+1
2010-06-15[GSM 04.08] add more RR IEIs0.1.12Harald Welte1-0/+9
2010-06-10gsm48: Add authentication response message0.1.11Sylvain Munaut1-0/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-09gsm_utils: Add a fn to test A5(x) support given a classmark2Sylvain Munaut1-0/+12
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-08vty: Mark app info strings as const char*.Holger Hans Peter Freyther1-3/+3
2010-06-01Merge remote branch 'origin/master'Harald Welte2-42/+5
2010-06-01add new new gprs_tmsi2tlli() function0.1.10Harald Welte1-1/+3
2010-05-31[VTY] Remove all application specific VTY node definitions from enum0.1.9Harald Welte1-41/+2
2010-05-29add configure option '--disable-vty' to prevent building libosmovtyHarald Welte1-0/+2
2010-05-25[VTY] Introduce "struct vty_app_info" for vty_init() functionHarald Welte2-6/+10
2010-05-25make sure we actually install the vty headersHarald Welte1-2/+4
2010-05-25Create libosmovty as library from OpenBSC VTY functionsHarald Welte9-1/+760
2010-05-23rate_ctr: Make the struct rate_ctr_group_desc members const0.1.8Holger Hans Peter Freyther1-4/+4
2010-05-19Added some "get"-functions to bitvec of libosmocore.Andreas.Eversberg1-0/+10
- Getting Low or High value from current postion - Getting unsigned interger from current postion
2010-05-16gsm0808: Add API to wrap a GSM48 msg with a BSSMAP/DTAP msg.Holger Hans Peter Freyther1-0/+2
2010-05-15gsm48: Add paging response header0.1.7Holger Hans Peter Freyther1-0/+9
2010-05-13[rate_ctr] Rename group_prefix_fmt to group_name_prefixHarald Welte1-2/+2
2010-05-13rate_counters: Remove group-name-sprintf-with-idx stringHarald Welte1-2/+1
2010-05-13rate_ctr: Store the numeric index as part of 'rate_ctr_group'Harald Welte1-0/+1
2010-05-13Add new 'rate counter' implementation to libosmocoreHarald Welte2-1/+82
A 'rate counter' is a counter that counts events but also keeps track of the rate of events (per second, minute, hour and day). 'rate counters' are generally abstracted in 'rate counter groups', which are instances of a 'rate counter group description'. This way we can have e.g. a description describing what kind of counters a BTS (or TRX) has - and we can then create one instance of that group for every BTS or TRX that exists.
2010-05-11logging: add log_vty_{level,category}_string()0.1.6Harald Welte1-0/+4
2010-05-11logging: introuduce log_level_str() to obtain the name of a log levelHarald Welte1-0/+1
2010-05-01Import gsm48_construct_ra() from openbscHarald Welte1-0/+1