aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-02-20move GSM protocol definitions to include/osmocore/protocol/*Harald Welte5-2185/+5
2010-02-20finish openbsc / libosmocore separationHarald Welte15-167/+22
* 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 Welte89-4479/+162
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
2010-02-14Merge branch 'on-waves/sccp'Holger Hans Peter Freyther2-0/+21
2010-02-14[sccp] Make the bitfields work on big endian machines tooHolger Hans Peter Freyther1-0/+20
* Use the endian.h to fogure out for which endianess we are building and then use the bitfields in reverse order
2010-02-12[sccp] Set the data_len when parsing UDT messages as wellHolger Hans Peter Freyther1-0/+1
For UDT the msgb_l3len can be safely used but it is better to set it to data_len for everyone..
2010-02-12Merge branch 'on-waves/sccp'Holger Hans Peter Freyther3-217/+388
2010-02-12[sccp] Make the file includable outside of OpenBSCHolger Hans Peter Freyther3-6/+9
2010-02-12Move debug.c into the liblaf0rge1.a tooHolger Hans Peter Freyther2-4/+5
The msgb class is using the debug framework and needs to be able to output data. We would need a way to add custom areas or to have the struct of areas outside of the default debug.c... but this can happen at a later point.
2010-02-12[sccp] Install the static sccp library and the headersHolger Hans Peter Freyther5-4/+16
2010-02-12[msgb] Make it possible to include it directly and from liblaf0rgeHolger Hans Peter Freyther1-1/+2
* include <sys/types.h> to have a definition of the u_intX_t types * include "linuxlist.h" via local includes so it can be found from the liblaf0rge directory where <openbsc/ does not exit.
2010-02-10misc: Include the linuxlist header via a local includeHolger Hans Peter Freyther1-1/+1
This is needed for the lib where the include directory is not called openbsc/.
2010-02-09liblaforge: Fix the .pc file. The preferred way to include is <laf0rge/foo.h>Holger Hans Peter Freyther1-1/+1
2010-02-09liblaf0rge: Make the other targets depend on the liblaforge...Holger Hans Peter Freyther5-9/+9
Everything is linking fine here.
2010-02-09Create a liblaforge with OpenBSC utility functions to be used for other projectsHolger Hans Peter Freyther5-4/+24
2010-02-09[tlv] Implement a variant for the IDTAG list for the IPAHolger Hans Peter Freyther1-0/+13
Implement a helper that will allow to easily fill the tag list with data.
2010-02-09[bsc] Allow to set a EGSM900, RGSM900 ARFCNHolger Hans Peter Freyther1-2/+4
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
2010-02-09[ipaccess] Make the IPA version of LTV public.Holger Hans Peter Freyther2-2/+5
2010-02-07[ipa] Make sending of ID REQ public...Holger Hans Peter Freyther2-1/+7
Make sending of the ID Request message public. We are going to use this in the BSC NAT code to ask for querying the BSC.
2010-02-07[ipaccess] Create a method to send the ID ACK messagesHolger Hans Peter Freyther2-1/+8
2010-02-07[telnet] Remove ancient #define...Holger Hans Peter Freyther1-3/+0
2010-02-03[sccp] Slightly improve the log messageHolger Hans Peter Freyther1-1/+1
2010-02-03[sccp] Refer to the right Company in the Copyright/Copyleft lineHolger Hans Peter Freyther2-2/+2
Use On-Waves instead of the name I made up from the domain name.
2010-02-03Merge branch 'master' into on-waves/sccpHolger Hans Peter Freyther103-1557/+10770
2010-02-03[mgcp] Refer to the right Company in the Copyright/Copyleft lineHolger Hans Peter Freyther3-3/+3
Use On-Waves instead of the name I made up from the domain name.
2010-02-03[mgcp] Make the mgcp_protocol generate a struct msgb*Holger Hans Peter Freyther3-62/+91
Do not directly send data from inside the mgcp_protocol.c implementation. Instead allocate and return a struct msgb*. The caller can then either wrap that into the IPA protcol or directly send it over the UDP socket.
2010-02-03[mgcp] Prepare the in process MGCP handling by adding callbacksHolger Hans Peter Freyther2-0/+24
* Call a callback when the endpoint was created, modified or deleted. This can be used by the BSC MUX to send a MGCP packet over TCP to the right the BSC to allocate the endpoint there with the right data, or it can be used in the BSC to send the right commands to the BTS.
2010-02-03[mgcp] Replace DEBUGP with the LOGP statementHolger Hans Peter Freyther1-39/+44
* Classify messages as LOGL_INFO or LOGL_ERROR
2010-02-03[mgcp] Prepare to do MGCP over TCP and inside the bsc_msc_ip processHolger Hans Peter Freyther4-1040/+1133
* Separate main process and protocol handling into two parts. * Change the protocol handling to work with UDP and TCP connection * This will allow to speak MGCP over TCP between the BSC MUX and the real BSC.
2010-02-02[mgcp] Rename the source to mgcp_main.cHolger Hans Peter Freyther2-1/+1
2010-02-01[mgcp] Move the MGCP procoess into a sub directoryHolger Hans Peter Freyther2-1/+1
2010-02-01[mgcp] In forward mode we need to rediscover the BTS more oftenHolger Hans Peter Freyther1-1/+1
In plain forward mode we don't have DLCX which will clean and reset the configuration. We will need to remember the last GSM BTS port and send data to it.
2010-02-01[mgcp] Handle BTS and NET being on the same hostHolger Hans Peter Freyther1-4/+5
* Do not only check the IP but also the port to figure out where to send the data * Do not memset the endp->remote inside the bind_rtp but from inside the crcx as this will be modified by the MDCX
2010-02-01[mgcp] Warn about unknown messages...Holger Hans Peter Freyther1-1/+3
2010-02-01[mgcp] Allow to forward to a different portHolger Hans Peter Freyther1-7/+23
2010-02-01[mgcp] Rename rtp and rtcp variables to net_rtp and net_rtcpHolger Hans Peter Freyther1-11/+11
Rename the variables to refer to the fact that they are the ports of the remote. So we have: rtp_port as the local address we are binding to net_rtp for the network rtp bsc_rtp for the bsc rtp
2010-02-01[mgcp] Make it possible to not specify a bts ipHolger Hans Peter Freyther1-7/+8
This way the mgcp will allow anyone to be the BTS.. in the future we might need to communicate things properly between BSC and MGCP.
2010-01-29[sccp] Implement sccp_parse_header to be used by the NAT code.Holger Hans Peter Freyther1-0/+35
2010-01-29[sccp] Split Connection DT1 into two partsHolger Hans Peter Freyther1-38/+46
This is the last of supported messages to be split into a parse and handle routine. Now all parse routines can be used by the NAT.
2010-01-29[sccp] Split Connection Release Complete into two partsHolger Hans Peter Freyther1-15/+22
2010-01-29[sccp] Split Connection Confirm handling into two partsHolger Hans Peter Freyther1-27/+40
2010-01-29[sccp] Split Connection Refused into two partsHolger Hans Peter Freyther1-25/+39
2010-01-29[sccp] Split Connection Released into two partsHolger Hans Peter Freyther1-24/+38
Split the Connection Released into header parsing and into acting on the parsed result. This is part of the NAT work.
2010-01-29[sccp] Separate connection parsing and policy for connection requestHolger Hans Peter Freyther1-48/+60
The same concept as with the previous patch, make the reject method work on the source local reference instead of passing it the header.
2010-01-29[sccp] Move the UDT parsing to a new methodHolger Hans Peter Freyther1-50/+89
Separate SCCP UDT parsing and handling into two methods. This way the parsing can be reused by the BSC NAT.
2010-01-29[sccp] Invent new API to be used by the BSC NATHolger Hans Peter Freyther1-1/+16
I want to reuse the SCCP code for header parsing in the BSC NAT to identify data and patch the source local reference. To do this the current handle_* methods will be changed into two parts one is strictly parsing the other is handling the parsed data.