aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-03-01add msgb_l1() and msgb_l1len() inline functionsHarald Welte1-0/+6
2010-03-01value_string functions and some RSL related stuff has moved to libosmocoreHarald Welte3-258/+6
2010-03-01Import value_string utilities and some RSL stuff from OpenBSCHarald Welte6-2/+308
2010-03-01msgb: add msgb->l1h memberHarald Welte1-0/+2
2010-02-26[write_queue] Add a generic write queue classHolger Hans Peter Freyther4-2/+120
The write queue can be a dropin replacement for the bsc_fd. It is featuring two callbacks. One for ready read and one for ready write. Whenever there is a message in the queue the write_queue will set the BSC_FD_WRITE flag and then call the write callback. It will make sure to delete the msgb after the write function has been called. This class is intended to be be used in the osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.
2010-02-26Merge remote branch 'origin/on-waves/sccp'Holger Hans Peter Freyther2-0/+123
2010-02-26Merge remote branch 'origin/on-waves/mgcp'Holger Hans Peter Freyther8-611/+911
2010-02-26Merge remote branch 'origin/master' into on-waves/sccpHolger Hans Peter Freyther108-6810/+261
2010-02-26Merge remote branch 'origin/master' into on-waves/mgcpHolger Hans Peter Freyther112-7032/+677
Conflicts: openbsc/include/openbsc/Makefile.am openbsc/src/Makefile.am
2010-02-26[misc] Add LIBOSMOCORE_CFLAGS to the includesHolger Hans Peter Freyther5-3/+5
2010-02-26[timer] Fix compile warning of the timer testHolger Hans Peter Freyther1-2/+3
2010-02-26[sccp] Implement parsing the rather easy IT messages.Holger Hans Peter Freyther2-0/+123
2010-02-26[mgcp] Patch the rtp payload depending on the direction.Holger Hans Peter Freyther1-0/+36
The RTP header code is taken from the rtp_proxy, we will need to figure out how to unite these properly in the long run.
2010-02-26[mgcp] Keep track of the local and remote RTP payload typeHolger Hans Peter Freyther2-2/+11
Keep track of which RTP payload type to use for which direction.
2010-02-26[mgcp] Introduce a policy CB for the MGCP protocolHolger Hans Peter Freyther2-0/+68
The are three policies. Accept, Reject and Defer. This will allow to handle network connections and such from the policy callback instead of directly acting on it.
2010-02-26[mgcp] Fix two bugs in the protocol handlingHolger Hans Peter Freyther1-1/+3
In case of a wrongly formatted AUEP, CRCX, DLCX, MDCX the transaction id pointer was a dangling pointer... Initialize the transaction id to a static string.. Also fix a off by one bug. We want to extract four elements from the MGCP message and not only 3... So a short AUEP message made it us read too many things.
2010-02-26[mgcp] Switch logging from notice to debugHolger Hans Peter Freyther1-3/+3
2010-02-26[mgcp] Add a method to free the endpoint.Holger Hans Peter Freyther2-12/+26
2010-02-26[rtp] Describe the struct in a way that it will work for Big Endian tooHolger Hans Peter Freyther1-0/+10
Play with the right bits on PPC.
2010-02-26[mgcp] Print the rtp_port number, do not assume it was already assigned.Holger Hans Peter Freyther1-1/+1
2010-02-24msgb.c: Style cleanup in initializationSylvain Munaut1-13/+4
Don't assign the same var twice & init all from the same source.
2010-02-24fix msgb_talroom() calculationHarald Welte1-1/+1
2010-02-24Merge remote branch 'origin/master'Harald Welte2-1/+19
2010-02-22[mgcp] Move the network bits to a separate file...Holger Hans Peter Freyther3-186/+224
This change separates the protocol from the actual network code (bind, forward data). This will allow to more easily hook up the RTP code from OpenBSC and to not use local sockets at all.
2010-02-22[mgcp] Make the creation of the mgcp message public.Holger Hans Peter Freyther2-3/+4
2010-02-22[mgcp] Cleanup the code. send_ was a misleading nameHolger Hans Peter Freyther1-22/+22
The send_ methods stopped to send the MGCP messages but was changed to actually just create a msgb_ that can be sent to a mediagateway. Rename the methods now.
2010-02-22[mgcp] Move away from global variables and split out VTY codeHolger Hans Peter Freyther7-417/+547
In separation of using the MGCP parsing in another context, refactor the code to operate on a struct mgcp_config, split out the vty code from the mgcp_protocol.c, and move the callbacks into the mgcp code. There should be no functional changes.
2010-02-21add msgb and tlv support bits required for openbsc gprs branchHarald Welte2-1/+19
2010-02-21add GPL to project sourceHarald Welte1-0/+339
2010-02-20remove libosmocore from openbscHarald Welte40-6905/+0
From now on, you will have to obtain, build and install libosmocore before being able to build openbsc. Sorry for that. But I hope it's a small price to pay for having no code duplication with our work on the phone side GSM stack!
2010-02-20fix select.c build (config.h)Harald Welte1-0/+2
2010-02-20fix config.h directoryHarald Welte1-1/+1
2010-02-20add missing automake / autoconf filesHarald Welte9-0/+91
2010-02-20update gitignore fileHarald Welte1-2/+1
2010-02-20update .gitignore fileHarald Welte1-2/+1
2010-02-20add missing Makefile.am in include/osmocore/protocol directoryHarald Welte1-0/+3
2010-02-20intial checkin of the libosmocore projectHarald Welte31-0/+6815
2010-02-20make sure libosmocom builds when cross-compiling for ARM without OSHarald Welte4-0/+15
This is required to build the library and be able to use it from within OsmocomBB.
2010-02-20u_int8_t -> uint8_tHarald Welte1-4/+4
2010-02-20convert from u_int*_t to u_int*_t (stdint.h format)Harald Welte5-126/+132
2010-02-20change from u_int* to uint* (stdint.h)Harald Welte10-97/+99
2010-02-20move GSM protocol definitions to include/osmocore/protocol/*Harald Welte12-2185/+2262
2010-02-20add gsmtap.hHarald Welte2-1/+64
2010-02-20add .gitignore to libosmocomHarald Welte1-0/+23
2010-02-20finish openbsc / libosmocore separationHarald Welte22-59/+49
* use pkg-config from openbsc to find header and library * move sms and timer tests to libosmocore itself * ensure "make distcheck" works on both packages
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte96-201/+289
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-02-20Merge branch 'on-waves/sccp'Holger Hans Peter Freyther1-1/+1
2010-02-20[sccp] Use msgb->l2h instead of msgb->data for CRHolger Hans Peter Freyther1-1/+1
Using msgb->data only works as long as msgb->data == msgb->l2h.. In the case of receiving a MSU unit from a E1 link, or even receiving the IPA header we will have some non SCCP data at msgb->data and then cast garbage to what we think is making sense.. Use msgb->l2h and everything is fine.
2010-02-19ipaccess.c: Fix some resource leaks in error conditions.Holger Hans Peter Freyther1-0/+13
* Close the socket when the bind is failing. * Close the socket when the listen is failing. * Close the socket then the bsc_register_fd is failing. * Return an error when the socket call is not returning a socket.
2010-02-16Install gsm_04_08.h and required headers into a openbsc/Holger Hans Peter Freyther2-1/+4