aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2010-10-19nat: Change the order of the DENY/ALLOW rule for the BSC.Holger Hans Peter Freyther1-6/+7
Currently it is not is not easily possible to disable everyone and then only allow certain SIMs. By changing the order we can do: access-list imsi-deny only-something ^[0-9]*$ access-list imsi-allow only-something ^123[0-9]*$ and still keep the usecase of only forbidding certain SIMs on certain LACs. Adjust test case, test that the other cases are still functional.
2010-10-19nat: Convert the ip to host order to allow to bind to other ipsHolger Hans Peter Freyther1-1/+1
2010-10-19nat: Add a method to add a proper message to the queue.Holger Hans Peter Freyther1-0/+4
This will be used by the USSD module to forward the data without creating another copy of the data.
2010-10-19nat: Find a connection by the real refHolger Hans Peter Freyther1-0/+13
2010-10-19nat: Use the make_sock routine to listen for incoming connections.Holger Hans Peter Freyther1-38/+4
2010-10-19nat: Use strncmp on the string in case it is not null terminatedHolger Hans Peter Freyther1-1/+2
2010-10-14ipaccess: Make sure the unitid is null terminatedHolger Hans Peter Freyther1-2/+9
The nanoBTS is sending null terminated strings, make sure they are really null terminated.
2010-10-14ipaccess: Verify that the data fits in the package.Holger Hans Peter Freyther1-1/+8
There is something wrong with the code, the length is here uint8_t but when we generate a IDGET we put it as 16bit data.
2010-10-14ipaccess: memset the tlv_parsed structure before parsingHolger Hans Peter Freyther1-0/+2
Make sure the tlv_parsed structure is initialized properly, otherwise we might detect a tag that should not be present.
2010-10-13nat: Make the write_queue write callback a public functionHolger Hans Peter Freyther2-12/+14
2010-10-13nat: Make the queue routine work on any write_queueHolger Hans Peter Freyther1-1/+6
2010-10-13ipaccess: Put our extensions to the protocol into the same enumHolger Hans Peter Freyther5-7/+8
Rename NAT_IPAC_PROTO_MGCP to IPAC_PROTO_MGCP and place it in the enum. We need to be prepared to change this number if IPA is ever going to use it for something else.
2010-10-12misc: Replace the idiom for replacing a string with a function callHolger Hans Peter Freyther6-56/+26
Remove a lot of code in favor of a new function that is freeing the old string and copying the new one. I should have gotten the context and the strings right.
2010-10-12socket: Plug resource leak when the listen call is failing.Holger Hans Peter Freyther1-0/+1
2010-10-12misc: Attempt to determine byte order in a cross-platform wayHolger Hans Peter Freyther2-2/+18
OSX does not provide an endian.h, use the other header files that should define/include what we need. Also check that the byteorder define is available.
2010-10-12ussd: Catch up with libosmocore and pass the gsm48_hdrHolger Hans Peter Freyther1-1/+3
2010-10-10ussd: Move the code libosmocore, increase the version number.Holger Hans Peter Freyther1-186/+0
Move the code to libosmocore, update the header file and the version required in the configure.in.
2010-10-08nat: Allow a BSC to have multiple LACsHolger Hans Peter Freyther3-19/+82
Make it possible that one BSC is serving multiple cells. Introduce a list of lacs, add functions to manipulate the lists. The current test cases for paging by lac continue to work.
2010-10-07msc: Only unregister the fd if the fd value is valid.Holger Hans Peter Freyther1-1/+3
This makes sure that someone can call bsc_msc_lost multiple times even if there is no MSC connection. This makes sense as bsc_msc_lost is public and be called from client code.
2010-10-07msc: Stop the connection timeout when we unregister the bfdHolger Hans Peter Freyther1-1/+4
When we dropped the connection... stop the timer as we might call bsc_unregister_fd twice...
2010-10-06misc: Once again go from "On Waves" to "On-Waves"..Holger Hans Peter Freyther11-11/+11
Try to get the company name of our sponsor right...
2010-10-05[VTY] T3212 scaling is 6 minutesDieter Spaar1-2/+2
The scaling of T3212 is in units of 6 minutes, not 10 minutes.
2010-10-06nat: Possible crash fix, only filter non local connectionsHolger Hans Peter Freyther1-10/+13
For local connections con_msc is not set and sending a RLSD to the network would have ended up in a segfault.
2010-10-06nat: Work around trying to forward a msg to a msc that does not existHolger Hans Peter Freyther1-1/+7
Instead of segfaulting warn the user that the MSC Connection does not exist...
2010-10-06nat: Use the right access list for the stats (found by clang)Holger Hans Peter Freyther1-1/+1
2010-10-03nat: Provide statistics about amount of different messages.Holger Hans Peter Freyther2-1/+34
Provide simple statistics on how many LUs, Paging Responses etc. we are seeing in the network.
2010-09-30gsm_04_80: Require libosmocore for creating USSD messagesHolger Hans Peter Freyther2-139/+2
Use the libosmocore to create USSD messages, increase the minimum version of libosmocore, add header files, remove the code.
2010-09-30gsm0408: Reorder the includes, openbsc first, osmocore secondHolger Hans Peter Freyther1-6/+7
2010-09-30gsm0480: Reorder the includes, openbsc first, osmocore secondHolger Hans Peter Freyther1-3/+4
2010-09-25nat: Keep track of how many connections we rejectHolger Hans Peter Freyther2-1/+32
Keep track of how many connections we reject due the IMSI filter itself or due not being able to parse the message.
2010-09-25nat: Print the statistics of the access-list matchesHolger Hans Peter Freyther1-0/+18
Print the statistics for the rule matches via the vty.
2010-09-25nat: Add statistics to the access-list in the NATHolger Hans Peter Freyther1-0/+22
Count how many times we match a BSC or NAT deny. This will give us the number of how often something should be filtered.
2010-09-24nat: Fix the filter when searching for a identity responseHolger Hans Peter Freyther1-5/+5
The filter code will return < 0 for error, 0 for unknown subscriber, 1 for subscriber checked. Use the same if construct as for the CR message. This should fix passing LU when it starts with a TMSI of a different network.
2010-09-24mgcp: Return 0 in case transcoding is disabled.Holger Hans Peter Freyther1-1/+1
In case transcoding is disabled no error has happened, return a zero. This is fixing starting the nat without transcoding.
2010-09-21auth: Fix AuthTupe re-use conditionSylvain Munaut1-1/+1
It's not the key_seq of the last authtuple we must check, but the one sent by the MS. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-21auth: Fix XOR algorithmSylvain Munaut1-1/+1
Thanks to the person on the ml that pointed this bug. Sorry I don't remember who (it was a while ago and somehow didn't got fixed at that time) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-09-20mgcp: Count the packets that arrive on the transcoderHolger Hans Peter Freyther2-1/+3
2010-09-20mgcp: Remove code duplication for filling out the sockaddr_inHolger Hans Peter Freyther1-22/+15
Share the send to transcoder sockaddr sending routines.
2010-09-20nat: Send a transcoder reset on start up.Holger Hans Peter Freyther2-0/+28
The transcoder RESET is using the same extensions to reset all endpoints on a remote site. This makes sure that all allocations can be made in a properly configured network.
2010-09-20mgcp: Make the base port of the transcoder configurableHolger Hans Peter Freyther3-2/+15
The code assumes a static mapping from endpoint to RTP port, be able to configure the start of such a mapping.
2010-09-20mgcp: Prepare the CRCX/MDCX/DLCX messages for the transcoder.Holger Hans Peter Freyther1-0/+102
Send CRCX/MDCX/DLCX to the transcoder, fill out transcoder_end with the interesting data and hope that it is going to work.
2010-09-20mgcp: Forward data from the BTS-in to the transcoderHolger Hans Peter Freyther3-8/+126
Bind a new port for the transcoder, forward data from the BTS to the transcoder, and from the transcoder to the network. Leave BTS-IN where it is, BTS-OUT can now be after the transcoding took place. We send the data from the BTS RTP port. This whole route will be guarded by the transcoder_ip and if it is NULL (current default) it will not go through the transcoder.
2010-09-20mgcp: Add ports for the transcoder as wellHolger Hans Peter Freyther1-0/+27
2010-09-20mgcp: Share the range parsing code for net/btsHolger Hans Peter Freyther1-14/+20
2010-09-20mgcp: Add a transcoder-mgw command to store the addressHolger Hans Peter Freyther1-0/+17
2010-09-20nat: Keep the audio name and default payload aroundHolger Hans Peter Freyther1-5/+0
For all forwarded messages this will not be used, but it is of use for the transcoding.
2010-09-20nat: Use the write_queue inside the CFG.Holger Hans Peter Freyther1-38/+39
2010-09-20mgcp: Keep the gw_fd inside the mgcp_configHolger Hans Peter Freyther1-12/+11
Move the bfd from a static var into the mgcp_config.
2010-09-20mgcp: Be able to parse 'sendonly' for the connection mode.Holger Hans Peter Freyther1-0/+2
2010-09-20mgcp: Switch the default audio codec to AMRHolger Hans Peter Freyther1-2/+2