aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-05nat: Make ping/pong timeout configurable.Holger Hans Peter Freyther1-0/+3
2010-04-22nat: Change MGCP DLCX handling and send dummy MDCX to the BTS.Holger Hans Peter Freyther1-1/+1
When setting a new MSC timeslot to a SCCP connection check if any of the existing connections have this timeslot, if so we will send a DLCX down the stream to make sure it is closed there, when we will CRCX this new timeslot we will happily reallocate it. When the SCCP connection goes away, or we get a DLCX from the network, or the BSC is gone we will send a DLCX message down the stream as well. When we receive a CRCX from the network we will forward the CRCX as usual and send a dummy MDCX after it. For the DLCX and the dummy MDCX we send a custom MGCP message that will not provoke an answer. Even if the downstream MGCP GW will answer we will ignore it due the dummy transaction id that is not used anywhere else. This change should make sure that we close the dowstream endpoint all the time, even when the DLCX arrives after the SCCP connection is torndown.
2010-04-22nat: Move the write queue init to the allocation functionHolger Hans Peter Freyther1-0/+1
This is required for unit tests that want to queue messages and see if we can provoke a memleak.
2010-04-21[nat] Ignore paging that is to page by BSS...Holger Hans Peter Freyther1-1/+5
We do not want to handle this identity. If we can not page by lac there is no need to page anything else.
2010-04-18nat: Always initialize the out pointer...Holger Hans Peter Freyther1-0/+2
Always initialize the pointer to a invalid value in case we encounter a parsing error or such.
2010-04-17nat: Print the LAC that was searched for and not found.Holger Hans Peter Freyther1-1/+2
2010-04-17nat: Make the MSC configurable.Holger Hans Peter Freyther1-0/+1
2010-04-17nat: Move MSC ip address into the config..Holger Hans Peter Freyther1-0/+8
The address can still be specified on the cli and it will overwrite the config in the config file.
2010-04-17Use osmocore tlv definition for GSM0808.Holger Hans Peter Freyther1-0/+1
2010-04-16nat: Two fixes for the write memory case...Holger Hans Peter Freyther1-1/+1
Add new BSCs to the tail so we keep the sort order when writing them out to the vty, fix the LAC command.
2010-04-13[statistics] Provide basic statistics for the NATHolger Hans Peter Freyther1-0/+9
Count number of SCCP connections, number of BSC reconnects, number of calls. For most of them we have a per BSC and a global count. Right now all structs using the counters survive until the end of the application so we do not need to free them.
2010-04-08nat: Attempt to have a single BSC write methodHolger Hans Peter Freyther1-3/+3
This method currently prepends the IPA header and sends the data. In the future we might be able to use SCTP for it. We have to remove the IPA header from the static messages for that to work. This code is untested.
2010-04-06nat: Store the config in the connection instead of the lacHolger Hans Peter Freyther1-1/+3
This allows that we can print the Nr. next to the lac and it allows us to change the lac at runtime without reconnecting the BSC.
2010-04-06nat: Print the unknown byte as a integer instead of charachterHolger Hans Peter Freyther1-1/+1
The value might be a non printable one.
2010-04-01nat: Handle CRCX/MDCX/DLCX at the natHolger Hans Peter Freyther1-0/+38
* Forward a rewritten msg to the BSS. We change the IP and port to point to the NAT instead of the core network. We also keep track of the BSC and the transacition id. * Handle the case where we have not found a SCCP connection and need to send a response ourselves.
2010-03-30nat: Look at the assignment command and remember on which timeslot the data isHolger Hans Peter Freyther1-0/+1
This information will be needed when we are trying to forward MGCP connections to and from the BSC through the IPA protocol.
2010-03-30sccp: Move the destruction of the sccp connection to a new placeHolger Hans Peter Freyther1-0/+11
2010-03-30nat: Some more input validation... on the paging command.Holger Hans Peter Freyther1-0/+5
2010-03-30nat: Move paging by lac handling code into the utils fileHolger Hans Peter Freyther1-0/+40
Moving it here means we can more easily test this code, there is one behaviour change with the code that we only support paging messages with one LAC and will silently ignore the others.
2010-03-29nat: Assign the connection inside the new helper function.Holger Hans Peter Freyther1-0/+1
2010-03-29nat: Move creation of the structs to a separate fileHolger Hans Peter Freyther1-0/+67
This way one can create the bsc_nat structure in unit tests..