aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_data.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-20nat: Test for a bug inside the TLV definition for GSM 08.08Holger Hans Peter Freyther1-1/+1
The 0x1 inside a CIC IE could indicate a new IE... add test data and test case to verify that the patching works correctly.
2010-09-15nat: Parse the id response, extract the IMSI, compare itHolger Hans Peter Freyther1-0/+8
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-08-30nat: Replace the MGCP Endpoint if that is requiredHolger Hans Peter Freyther1-3/+3
Add code to replace the Endpoint number for the mgcp.
2010-07-23nat: u_int8_t -> uint8_tHolger Hans Peter Freyther1-14/+14
2010-06-15nat: Remove the broken empty line check, follow \n vs \r\n of inputHolger Hans Peter Freyther1-0/+10
Instead of checking the token for NULL we need to check if running was set to null. Look at the data of the token and check if the line was ending with a \r\n or \n and then when rewriting a line use that line ending as well. Add a new test for that.
2010-06-15nat: Test rewriting of MGCP messages to patch ip and portHolger Hans Peter Freyther1-0/+55
Add code to change the ip and port for audio data inside MGCP messages. This is needed because the BSS might be behind the NAT and can not reach the network directly and might be behind a nat so the announced sourceport is not the one as we see it.
2010-06-15nat: Look at the assignment command and remember on which timeslot the data isHolger Hans Peter Freyther1-0/+7
This information will be needed when we are trying to forward MGCP connections to and from the BSC through the IPA protocol.
2010-06-15nat: Add test case and data for paging by lac test.Holger Hans Peter Freyther1-0/+10
2010-06-15nat: Add a test case for the connection trackingHolger Hans Peter Freyther1-0/+72
This test case tests connectiont tracking by sending a CR, getting a CC, sending a DTAP, receiving a DTAP, receiving a RLSD, sending a RLC. It verifies that the messages are properly patched specially the references at the BSC.