aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2010-10-28nat: Fix a thinko in allowing '*' as a wildcard...Holger Hans Peter Freyther1-2/+2
We need to match everything BUT the wildcard and then do the normal strcmp...
2010-10-27Merge branch 'zecke/number-rewrite'openbsc/0.9.90.9.9Holger Hans Peter Freyther3-1/+190
2010-10-27Merge branch 'zecke/ussd-side-channel'Holger Hans Peter Freyther2-3/+66
2010-10-27nat: Also send a Clear Command in case of the USSD Provider diesHolger Hans Peter Freyther1-0/+23
2010-10-27nat: Close SCCP connections when the USSD Provider is closed.Holger Hans Peter Freyther2-1/+41
Send a RLSD down to the BSC in case the USSD Provider is gone. It is not sending a Clear Command and ut depends if the BS+ will like this kind of behavior. At least the data on the NAT will be freed soon afterwards due the RLC message.
2010-10-27nat: Make clear where the RLSD is send toHolger Hans Peter Freyther1-2/+2
Add a _msc to the method as we will send a RLSD to the MSC and will add a method to send it down to the BSC as well.
2010-10-27nat: Look at the number type to figure out if we want to rewrite itHolger Hans Peter Freyther1-1/+3
2010-10-27nat: Explain that we do not want to have a + in the replacement ruleHolger Hans Peter Freyther1-0/+6
2010-10-27nat: Add '*' as wildcard for the IMSI matching.Holger Hans Peter Freyther1-2/+2
In case any rule has a '*' we will always match this rule.
2010-10-27nat: Implement rewriting, have a very basic test for that featureHolger Hans Peter Freyther2-3/+142
2010-10-27nat: Add hook for rewriting a setup messageHolger Hans Peter Freyther2-1/+18
Create a new function, hand the data to this function, take back a possible modified msgb and invalidate parsed at this point.
2010-10-27nat: Add vty option for number rewritingHolger Hans Peter Freyther1-0/+25
Parse a msg file in case we do have a list.
2010-10-26[vty] First set of fixes for the oml/rsl con droppingHolger Hans Peter Freyther1-4/+7
The code had wrong documentation in the VTY, it crashed when OML or RSL was not up yet. These issues are fixed right now.
2010-10-26[vty] Add ipa specific command to provoke failures to test OML/RSL reconnectHolger Hans Peter Freyther1-0/+50
We need to simulate OML/RSL failure in an easy and fast way and adding a command to do so seems like a good way to achieve this. The command is a bit misplaced, in one way it is no config and does not belong into the config node but then again it does not belong into the VIEW_NODE either as it is manipulating content. On this merge I have changed it to the ENABLE_NODE.
2010-10-25nat: Forward the data coming from the USSD module to the BSC.Holger Hans Peter Freyther1-3/+44
2010-10-25nat: Forward extra state and the message to the USSD providerHolger Hans Peter Freyther2-4/+39
Forward the SCCP state and the data to the USSD provider, also mark the connection as local.
2010-10-25nat: Implement accepting a USSD Provider connection, do authenticationHolger Hans Peter Freyther3-1/+197
2010-10-25nat: Replace the idiom for replacing a string with a function callHolger Hans Peter Freyther1-12/+4
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-25nat: Keep a ussd token in the configHolger Hans Peter Freyther1-0/+28
We will have the USSD provider connecting to us and we will use the IPA protocol, including the auth mechanism.
2010-10-25nat: Implement the matching of certain USSD messagesHolger Hans Peter Freyther1-1/+63
Have various checks, check if the IMSI should be handled, if there is a USSD query set and then decode and compare the value.
2010-10-25nat: Add an option to set the query string to matchHolger Hans Peter Freyther1-0/+15
Allow the query string to be set. The ussd matching code will check for this string and then forward it to the bypass.
2010-10-25nat: Make the imsi checking function public.Holger Hans Peter Freyther1-2/+2
We will use this method in the USSD module to check if the IMSI should be handled for USSD queries.
2010-10-25nat: Provide a USSD access list to check for which to play HLR.Holger Hans Peter Freyther1-0/+15
2010-10-25nat: Create a USSD module to filter out USSDs...Holger Hans Peter Freyther3-1/+40
2010-10-25nat: Introduce a new connection type for Supplementary ServicesHolger Hans Peter Freyther1-2/+9
If we have a CM Service Request we will look into the message to see if it is a Supplementary Service Activation.
2010-10-21nat: Move the DTAP unpacking into a new methodHolger Hans Peter Freyther1-13/+21
DTAP unpacking will be used by the USSD checking code
2010-10-21nat: Copy the IMSI, then free it or move the context to the connectionHolger Hans Peter Freyther2-8/+28
Extract the IMSI from the first message as well and safe it in the connection structure. The problem is that we do not have this structure at this point, so we will allocate the imsi as child of the bsc_connection and then move/steal it.
2010-10-21nat: Store the IMSI inside the SCCP Connection dataHolger Hans Peter Freyther1-0/+1
Store the IMSI for the connections that we are tracking, it will be freed when the normnal SCCP connection is freed.
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.