Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-09-20 | nat: NULL check the allocation and print a nice warning. | Holger Hans Peter Freyther | 1 | -0/+6 | |
2010-09-18 | janitor: Move the * to the variable name | Holger Hans Peter Freyther | 2 | -4/+4 | |
2010-09-16 | nat: Fix a crash when a BSC disconnects while a rejected IMSI | Holger Hans Peter Freyther | 1 | -1/+2 | |
When we reject the IMSI we do not have the msc_con set on the SCCP connection, but we do have a remote_ref. So the nat_send_rlsd will end up with a crash due the msc_con being zero. Fix the crash by only sending a released to the MSC when the connection is not local. | |||||
2010-09-16 | nat; Start to use gcc attribute to say that parameter may not be zero | Holger Hans Peter Freyther | 1 | -0/+1 | |
This is an attempt to hint the compiler that it should check the parameters and warn when something is null. Sadly it does not work as expected. | |||||
2010-09-15 | nat: Fix the grammar of the sentence for listing open sccp connectionsopenbsc/0.9.6 | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-09-15 | nat: Check if the connection was filtered before the msc connection | Holger Hans Peter Freyther | 1 | -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-15 | nat: Remove debug left overs | Holger Hans Peter Freyther | 1 | -1/+0 | |
2010-09-15 | nat: Attempt to disconnect a connection when IMSI filtering happens | Holger Hans Peter Freyther | 1 | -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-15 | nat: And the sequence number away, making it work more reliable | Holger Hans Peter Freyther | 1 | -4/+8 | |
2010-09-15 | nat: Parse the id response, extract the IMSI, compare it | Holger Hans Peter Freyther | 1 | -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-15 | nat: Start inspecting every message coming from the BSC for the IMSI | Holger Hans Peter Freyther | 2 | -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-15 | nat: Remember if we have check the imsi. | Holger Hans Peter Freyther | 2 | -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-15 | nat: Keep the fiter status in the return message. | Holger Hans Peter Freyther | 1 | -1/+3 | |
2010-09-15 | nat: Improve the log message in case we have SCCP data without a connection | Holger Hans Peter Freyther | 1 | -1/+4 | |
Describe which kind of data we have and where it was coming from as this makes debugging a bit easier. | |||||
2010-09-11 | vty: Use \r\n in the copyright messages | Holger Hans Peter Freyther | 1 | -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-05 | nat: Use ':' to separate the message and strerror | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-09-04 | vty: Add the config node code to everyone. | Holger Hans Peter Freyther | 1 | -0/+1 | |
2010-08-30 | nat: Replace the MGCP Endpoint if that is required | Holger Hans Peter Freyther | 1 | -4/+33 | |
Add code to replace the Endpoint number for the mgcp. | |||||
2010-08-30 | nat: Use different static transaction numbers for the DLCX/MDCX message | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-08-30 | nat: Document that the MDCX message is not implemented | Holger Hans Peter Freyther | 1 | -0/+2 | |
2010-08-29 | nat: Send the right MDCX down the stream | Holger Hans Peter Freyther | 1 | -3/+3 | |
2010-08-29 | nat: Remove the code that is wrongly placed.. | Holger Hans Peter Freyther | 1 | -9/+0 | |
i refers to the MSC side of endpoints and not the BSC.. | |||||
2010-08-29 | nat: Close the right endpoint down the stream. | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-08-29 | nat: Add vty command to show the endpoint allocation status | Holger Hans Peter Freyther | 1 | -0/+26 | |
2010-08-29 | nat: Attempt to assign the BSC Timeslot based on a free list | Holger Hans Peter Freyther | 2 | -3/+51 | |
Do attempt to not reassign an endpoint immediately but go to the next free one. | |||||
2010-08-29 | nat: Remove the CRCX value from the nat | Holger Hans Peter Freyther | 1 | -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-29 | nat: Reindent the code, no functional change | Holger Hans Peter Freyther | 1 | -20/+20 | |
2010-08-29 | nat: Make the code work in terms of endpoints instead of timeslot/multiplex | Holger Hans Peter Freyther | 2 | -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-29 | nat: Use the bsc_timeslot when talking to the BSC downstream | Holger Hans Peter Freyther | 1 | -3/+4 | |
2010-08-25 | Introduce '-D' commandline option to daemonize processes | Harald Welte | 1 | -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-06 | nat: Do not report paging to every BTS... | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-08-06 | nat: In case the downstream fails on a CRCX, ask it to do a DLCX | Holger Hans Peter Freyther | 1 | -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-06 | nat: Use the state information for the callback. | Holger Hans Peter Freyther | 1 | -2/+2 | |
2010-08-06 | nat: Keep the state (CRCX,MDCX,DLCX) of the operation.. | Holger Hans Peter Freyther | 1 | -0/+4 | |
This will allow to have additional debug information and to use the state inside the forwarding code. | |||||
2010-08-06 | nat: Free the endpoint when we get an empty CI. | Holger Hans Peter Freyther | 1 | -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-06 | mgcp: Make the CI uint32_t all the way to avoid mismatch | Holger Hans Peter Freyther | 1 | -3/+3 | |
2010-08-06 | nat: Provide information of when a msg does not contain a CI | Holger Hans Peter Freyther | 1 | -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-05 | nat: Use the mgcp_config_alloc to have defaults initialized | Holger Hans Peter Freyther | 2 | -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-05 | mgcp: Attempt to separate the RTP/RTCP port for the Network and for the BTS | Holger Hans Peter Freyther | 1 | -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-05 | mgcp: Group the state for bts/net into a struct and have two instances | Holger Hans Peter Freyther | 1 | -1/+1 | |
Group the data that each end (network/bts) have into a struct and use this struct throughout the sourcecode. | |||||
2010-08-05 | nat: Fix the spelling of that comment. | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-08-04 | nat: Show if we are connected to the MSC. | Holger Hans Peter Freyther | 1 | -0/+2 | |
2010-08-04 | nat: Count the number of connects to the MSC. | Holger Hans Peter Freyther | 1 | -2/+6 | |
2010-08-04 | nat: Indent the connected... to make it belong to the BSC group | Holger Hans Peter Freyther | 1 | -1/+1 | |
2010-08-03 | Use new include paths of libosmo-sccp 0.0.2 | Harald Welte | 6 | -6/+6 | |
2010-07-31 | nat: Fix compilation with nat not being enabled. | Holger Hans Peter Freyther | 6 | -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-31 | sccp: Use the external libosmo-sccp as sccp implementation | Holger Hans Peter Freyther | 2 | -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-27 | nat: Rename ip-tos to ip-dscp and provide an alias... | Holger Hans Peter Freyther | 2 | -6/+12 | |
2010-07-23 | nat: Clang reported two places with garbage data | Holger Hans Peter Freyther | 1 | -1/+5 | |
Initialize the variables to NULL to fix it. | |||||
2010-07-23 | nat: u_int32_t -> uint32_t | Holger Hans Peter Freyther | 1 | -1/+1 | |