aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat
AgeCommit message (Collapse)AuthorFilesLines
2010-09-15nat: Fix the grammar of the sentence for listing open sccp connectionsopenbsc/0.9.6Holger Hans Peter Freyther1-1/+1
2010-09-15nat: Check if the connection was filtered before the msc connectionHolger Hans Peter Freyther1-4/+4
This way we avoid seeing many warnings that we will not forward data to the MSC. For the con_local connections that is actually the idea, we will not forward them to the MSC.
2010-09-15nat: Remove debug left oversHolger Hans Peter Freyther1-1/+0
2010-09-15nat: Attempt to disconnect a connection when IMSI filtering happensHolger Hans Peter Freyther1-4/+60
Attempt to disconnect the connection and make both sides happy about this. Right now it only handles the LU and should be extended to the CM Service Request.
2010-09-15nat: And the sequence number away, making it work more reliableHolger Hans Peter Freyther1-4/+8
2010-09-15nat: Parse the id response, extract the IMSI, compare itHolger Hans Peter Freyther1-1/+58
Add a test case and also add a basic check that we got some size checks correct. The next step is to act on the result.
2010-09-15nat: Start inspecting every message coming from the BSC for the IMSIHolger Hans Peter Freyther2-3/+20
Return early in case the IMSI was already checked, if not we need to look at the connection and check if the message could contain a imsi we want/need to filter.
2010-09-15nat: Remember if we have check the imsi.Holger Hans Peter Freyther2-3/+4
Return -1 if the IMSI should be filtered, 0 if the IMSI could not be checked and 1 if the IMSI was checked and allowed to pass. In the future this will be used to inspect every message coming by.
2010-09-15nat: Keep the fiter status in the return message.Holger Hans Peter Freyther1-1/+3
2010-09-15nat: Improve the log message in case we have SCCP data without a connectionHolger Hans Peter Freyther1-1/+4
Describe which kind of data we have and where it was coming from as this makes debugging a bit easier.
2010-09-11vty: Use \r\n in the copyright messagesHolger Hans Peter Freyther1-4/+4
We should use VTY_NEWLINE but our strings are static, always use \r\n as unix terminals can handle that as well.
2010-09-05nat: Use ':' to separate the message and strerrorHolger Hans Peter Freyther1-1/+1
2010-09-04vty: Add the config node code to everyone.Holger Hans Peter Freyther1-0/+1
2010-08-30nat: Replace the MGCP Endpoint if that is requiredHolger Hans Peter Freyther1-4/+33
Add code to replace the Endpoint number for the mgcp.
2010-08-30nat: Use different static transaction numbers for the DLCX/MDCX messageHolger Hans Peter Freyther1-1/+1
2010-08-30nat: Document that the MDCX message is not implementedHolger Hans Peter Freyther1-0/+2
2010-08-29nat: Send the right MDCX down the streamHolger Hans Peter Freyther1-3/+3
2010-08-29nat: Remove the code that is wrongly placed..Holger Hans Peter Freyther1-9/+0
i refers to the MSC side of endpoints and not the BSC..
2010-08-29nat: Close the right endpoint down the stream.Holger Hans Peter Freyther1-1/+1
2010-08-29nat: Add vty command to show the endpoint allocation statusHolger Hans Peter Freyther1-0/+26
2010-08-29nat: Attempt to assign the BSC Timeslot based on a free listHolger Hans Peter Freyther2-3/+51
Do attempt to not reassign an endpoint immediately but go to the next free one.
2010-08-29nat: Remove the CRCX value from the natHolger Hans Peter Freyther1-4/+1
Assume that if the MSC has assigned a timeslot/multiplex it will also be used for the MGCP. So we just assume that it was allocated on the BSC as well... in the worse case we will send a DLCX downstream but it should be fine.
2010-08-29nat: Reindent the code, no functional changeHolger Hans Peter Freyther1-20/+20
2010-08-29nat: Make the code work in terms of endpoints instead of timeslot/multiplexHolger Hans Peter Freyther2-17/+15
We are going to have more than one trunk, so all code hardcoding the multiplex to zero must go. Avoid this kind of problem by saving the MGCP endpoint number and comparing that.
2010-08-29nat: Use the bsc_timeslot when talking to the BSC downstreamHolger Hans Peter Freyther1-3/+4
2010-08-25Introduce '-D' commandline option to daemonize processesHarald Welte1-1/+13
This uses the osmo_daemonize() function of libosmocore >= 0.1.18, and is now implemented for bac_nat, osmo-bsc, bsc_hack, osmo-gbproxy and bsc_mgcp. This means only osmo-sgsn is missing, which currently has no option parsing at all.
2010-08-06nat: Do not report paging to every BTS...Holger Hans Peter Freyther1-1/+1
2010-08-06nat: In case the downstream fails on a CRCX, ask it to do a DLCXHolger Hans Peter Freyther1-4/+33
If the CRCX is failing, we will send a DLCX downstream and the next time the callagent tries to do a CRCX we will be more lucky. This is for the case where we have an endp allocated.
2010-08-06nat: Use the state information for the callback.Holger Hans Peter Freyther1-2/+2
2010-08-06nat: Keep the state (CRCX,MDCX,DLCX) of the operation..Holger Hans Peter Freyther1-0/+4
This will allow to have additional debug information and to use the state inside the forwarding code.
2010-08-06nat: Free the endpoint when we get an empty CI.Holger Hans Peter Freyther1-0/+7
In case the BSC is sending us an empty/unused CI we have a bug, but for now let us free the endpoint and figure out which response we are getting.
2010-08-06mgcp: Make the CI uint32_t all the way to avoid mismatchHolger Hans Peter Freyther1-3/+3
2010-08-06nat: Provide information of when a msg does not contain a CIHolger Hans Peter Freyther1-2/+7
When we fail to find a CI in a message that should contain it then print the message so we can analyze the issue and improve the code later on.
2010-08-05nat: Use the mgcp_config_alloc to have defaults initializedHolger Hans Peter Freyther2-1/+9
Initialize the net_base properly and benefit from future config changes but also reset certain defauls that we do not want at the nat.
2010-08-05mgcp: Attempt to separate the RTP/RTCP port for the Network and for the BTSHolger Hans Peter Freyther1-3/+3
We plan to have two different ports for the network and for the BTS to avoid detecting the BTS and to dynamically allocate the port to have old data not go to a new socket.
2010-08-05mgcp: Group the state for bts/net into a struct and have two instancesHolger Hans Peter Freyther1-1/+1
Group the data that each end (network/bts) have into a struct and use this struct throughout the sourcecode.
2010-08-05nat: Fix the spelling of that comment.Holger Hans Peter Freyther1-1/+1
2010-08-04nat: Show if we are connected to the MSC.Holger Hans Peter Freyther1-0/+2
2010-08-04nat: Count the number of connects to the MSC.Holger Hans Peter Freyther1-2/+6
2010-08-04nat: Indent the connected... to make it belong to the BSC groupHolger Hans Peter Freyther1-1/+1
2010-08-03Use new include paths of libosmo-sccp 0.0.2Harald Welte6-6/+6
2010-07-31nat: Fix compilation with nat not being enabled.Holger Hans Peter Freyther6-0/+6
common_vty.c was including bsc_nat.h which tried to get the sccp/sccp_types.h which is not required to be installed. Move all structs using/embedding SCCP structures into the bsc_nat_sccp.h and include. This should fix the compilation.
2010-07-31sccp: Use the external libosmo-sccp as sccp implementationHolger Hans Peter Freyther2-3/+4
Add --enable-nat and --enable-osmo-bsc to build applications requiring the Osmo SCCP library to be installed. We are not using autodiscover as this is out of fashion.
2010-07-27nat: Rename ip-tos to ip-dscp and provide an alias...Holger Hans Peter Freyther2-6/+12
2010-07-23nat: Clang reported two places with garbage dataHolger Hans Peter Freyther1-1/+5
Initialize the variables to NULL to fix it.
2010-07-23nat: u_int32_t -> uint32_tHolger Hans Peter Freyther1-1/+1
2010-07-23nat: u_int16_t -> uint16_tHolger Hans Peter Freyther1-2/+2
2010-07-23nat: u_int8_t -> uint8_tHolger Hans Peter Freyther3-17/+17
2010-07-22nat: Provide an easy view to see if something is connected to the NAT.Holger Hans Peter Freyther1-0/+12
2010-07-22nat: Introduce a show statistics-by-lac LACHolger Hans Peter Freyther1-13/+43
Currently show show statistics only work by given the internal configuration number, add a version that is working by LAC of the BSC.