aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-05-16[sccp] Create a method to create RLSD messages.Holger Hans Peter Freyther2-3/+22
2010-05-16[sccp] Create a SCCP CC creation routine.Holger Hans Peter Freyther2-8/+24
2010-05-16[nat] Make create_sccp_src_ref return the SCCP Connection.Holger Hans Peter Freyther4-11/+16
Right now it was not possible to just find a connection, by returning the connection that is created we will have direct access to it. It will be used by the local connection handling.
2010-05-16[nat] Remove parameter that is never accessed directlyHolger Hans Peter Freyther4-4/+4
The msgb needs to be around when we access the parsed structure but that needs to be guranteed by the caller handing out the parsed structure.
2010-05-16[nat] Add the notion of a "local" connection.Holger Hans Peter Freyther2-0/+8
A local connection is only between the MUX and the real BSC. We will not forward anything to the MSC. This will be needed for the IMSI filtering as sending a CREF is not liked by every BSC...
2010-05-16[nat] Do not access the con after the removalHolger Hans Peter Freyther1-3/+15
In case of a RLC message we will destroy the SCCP connection. This means that accessing the con and con->bsc will access old memory. Keep the status local and move the con into an inner scope.
2010-05-16[nat] Send a GSM48 message within the reject messageHolger Hans Peter Freyther1-1/+19
2010-05-16gsm48: Split LU Reject sending and generation into two.Holger Hans Peter Freyther3-9/+26
2010-05-16gsm48: Separate CM Service Reject sending and creation.Holger Hans Peter Freyther3-9/+25
Split out the msg generation from the sending, this will be used by the nat to send a refusal message.
2010-05-16[nat] Move the SCCP CREF handling into a new method.Holger Hans Peter Freyther1-7/+17
We will need to generate messages with a proper reason and it is easier to do that from a dedicated method.
2010-05-16[bsc_msc_ip] Move the command to the right placeHolger Hans Peter Freyther2-28/+20
Apparently I could not find the vty_interface_bsc.c when I was searching for it. Move an extra BSC command into that file.
2010-05-16[bsc_msc_ip] Print SCCP src/dst ref as hexHolger Hans Peter Freyther1-1/+1
2010-05-16[nat] Use and print the connection type of a SCCP connection.Holger Hans Peter Freyther4-1/+20
2010-05-16[nat] Set the connection type/reason as out parameterHolger Hans Peter Freyther4-5/+34
We are analyzing each CR message and it is nice to know the reason these connections were created. Change the nat method.
2010-05-16Bump the version.on-waves/0.3.99.12Holger Hans Peter Freyther1-2/+2
2010-05-16[nat] Use the new gsm48 method to parse the MI followed by a classmark.Holger Hans Peter Freyther1-22/+9
2010-05-16gsm48: Add a generic MI from classmark+mi extraction.Holger Hans Peter Freyther2-6/+14
This is a generic MI extraction for the MI if it is followed after a classmark. For the Phase1 Phones the classmark2 is not four bytes but it might be different. This code can be used by the CM Service Request handling as well.
2010-05-16[nat] Let IMSI DETACH and other messages pass by.Holger Hans Peter Freyther1-3/+2
2010-05-16[nat] Print on which BSC config this happend.Holger Hans Peter Freyther1-2/+2
2010-05-15[nat] Parse the PAGING RESPONSE inside a CR message as well.Holger Hans Peter Freyther2-1/+45
Now we are parsing a CM Service Request, Location Updating Request and the Paging Response. For all other messages we claim to not support it and force a refuse.
2010-05-15gsm48: Add size checks to the paging response mi parsing.Holger Hans Peter Freyther4-8/+25
We go from no size checks to some content checking. We should refactor the whole classmark2 + mi parsing that is used throughout the code into one place with proper size checking. This is the start and requires a new libosmocore as well.
2010-05-15[nat] Check proto descriptor and the message typeHolger Hans Peter Freyther1-2/+4
2010-05-15[nat] Add code to filter the CM Service Request by IMSI.Holger Hans Peter Freyther1-0/+48
The code should be shared among the GSM0408 implementation and this one, and like the LU we are not handling a TMSI properly as we have no idea where it is coming from.
2010-05-15[nat] Mention where the MSG is coming from.Holger Hans Peter Freyther1-1/+1
2010-05-15[sccp] Make it optional to send data on a SCCP Connection RefuseHolger Hans Peter Freyther3-4/+11
This can be used to send a Location Updating Reject down to the BSC when it is clear that a subscriber is not allowed.
2010-05-15[nat] Remove the imsi allow option on the nat level.Holger Hans Peter Freyther4-30/+1
For now we have: 1.) bsc imsi deny to deny at the BSC level 2.) bsc imsi allow to allow a SIM at the BSC level 3.) nat imsi deny to deny at the global level
2010-05-15[nat] Separate exit2/exit3 as this can not be shared...Holger Hans Peter Freyther1-1/+6
We have tried to send a refuse for arbitary things and ended up with a segfault... separate the exi2 and exit3 label to have separate exits and cleanups.
2010-05-15[nat] Add a token to the nat config and handle ID GETHolger Hans Peter Freyther3-3/+30
This allows to chain a nat with a nat by answering to the id get code and sending the token.
2010-05-15[bsc_msc] Move the id get response into the bsc_msc.cHolger Hans Peter Freyther3-9/+26
Create the message in a common place and then it can be used by tools having an a link or such.
2010-05-14[nat] Add a regexp test command to the VTY.Holger Hans Peter Freyther1-0/+19
This allows to test the regexp to be used for allo/deny of the imsi filter.
2010-05-14[nat] Fix the regexp of the test and the command line.Holger Hans Peter Freyther1-3/+3
2010-05-14[nat] Fix the imsi deny config write.Holger Hans Peter Freyther1-1/+1
2010-05-14[nat] We do not want to see the actual matches.Holger Hans Peter Freyther1-5/+3
2010-05-14[nat] Allow to set the description for the bsc.Holger Hans Peter Freyther2-0/+23
This will allow to add description to each BSC.
2010-05-14[nat] Implement IMSI filtering...Holger Hans Peter Freyther2-14/+153
2010-05-14[nat] Fix the size check of the LU Request.Holger Hans Peter Freyther1-2/+3
2010-05-14[nat] Make the string -> regexp parsing publicHolger Hans Peter Freyther3-18/+21
This way it can be used from within a test case to test the regexps..
2010-05-14nat: Add code to parse the SCCP optional data.Holger Hans Peter Freyther1-3/+76
First we have the Complete Layer3 Information, then we have the IE for the Layer3 information, then the GSM48 hdr, then the actual content with data. Right now we are parsing the LU but we are not filtering anything yet.
2010-05-14nat: Start to add a test case.. with one CR message.Holger Hans Peter Freyther1-0/+19
2010-05-14gsm48: Typo fix.Holger Hans Peter Freyther1-1/+1
2010-05-14nat: Introduce a nat filter that is working on the CR message.Holger Hans Peter Freyther3-0/+22
Currently there is no implementation but the refusal code is in place and will send a refusal back to the BSC.
2010-05-14[sccp] Export function to create SCCP Refuse message.Holger Hans Peter Freyther2-1/+16
2010-05-14[bsc_msc_ip] Use A.B.C.D for the VTY code.Holger Hans Peter Freyther1-1/+1
2010-05-14[nat] Use A.B.C.D for the IP addressHolger Hans Peter Freyther1-1/+1
The VTY code will then be able to validate the IP Address.
2010-05-14[nat] Remove range checks inside the VTY command.Holger Hans Peter Freyther1-6/+0
The ranges are enforced by the VTY code.
2010-05-14[mgcp] Clean up VTY code, the ranges are checked by the VTY code.Holger Hans Peter Freyther1-20/+0
2010-05-14[mgcp] Use A.B.C.D for the ip addresses inside the vty configHolger Hans Peter Freyther1-4/+4
Make the vty code parse the ip addresses for us and validate them for us.
2010-05-14[mgcp] Improve the language of the comments.Holger Hans Peter Freyther1-2/+2
2010-05-14[mgcp] Include stdlib.h for abs.Holger Hans Peter Freyther1-0/+1
2010-05-14[vty] Add power measurements to the one line summary.Holger Hans Peter Freyther1-1/+13