9
0
Fork 0
Commit Graph

51 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther fd5d8d2ac1 mtp: Send the TFP/TRA/TFA with the first SLS provided by that link 2011-01-25 13:38:28 +01:00
Holger Hans Peter Freyther 7d336a55ed mtp: Make SCCP tfa/tra/tfp messages work on the linkset
This will be used to send the data with the right SLS from
the right link of the linkset.
2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther 1ec2a749f0 mtp: Remember the first SLS this link is on 2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther 326a1f7310 stats: Fix counting incoming packets from a link 2011-01-24 20:52:30 +01:00
Holger Hans Peter Freyther 9543f4a356 mtp: Call it mtp_link_submit and use it in mtp_link
Remove the _set from the API, call it from the mtp_link.c. This
will fix the statistics for outgoing packets.
2011-01-24 20:49:58 +01:00
Holger Hans Peter Freyther 4c1eb0ee43 stats: Count packets on a per link level 2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther c5d897e847 stats: Collect statistics on the linkset
Collect incoming, in sccp, in isup, out isup, out sccp packets.
This does not yet work for out in total.
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther 050577a088 mtp: Return SLTA on the same SLS, send SLTM with a static sls
Derive the SLS from the static link_no we have assigned.
2011-01-20 19:28:15 +01:00
Holger Hans Peter Freyther 95057b9237 mtp: Send the SLTM/SLTA on the link directly
For both the SLTM that the app is sending and the SLTM we
are receiving we don't want to go through the SLC.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 1cc24561b0 mtp: Count the links in a linkset 2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 9b8a4a7f49 mtp: Remove the unused linkset_sccp_down routine as it is not used 2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther a8ce061d86 mtp: Move the link testing into a new file for mtp_link
The link testing should work under the linkset and if the
SLTM is failing the link should be taken down and it should
be restarted.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 2d845fca0c mtp: Rename the the_link to set as it is a link set 2011-01-20 15:44:14 +01:00
Holger Hans Peter Freyther 1349584c26 mtp: Start the linktest directly
No need for delaying the linktest, start it directly when
the linkset should come up
2011-01-20 15:08:57 +01:00
Holger Hans Peter Freyther 606eae8ece mtp: Send the TFP/TRA once the first link is available
Instead of sending SCCP TFP/TRA as a response to a TRA
the code will now send one as a response to the first
SLTA we receive in the linkset on the first link.
2011-01-20 14:23:10 +01:00
Holger Hans Peter Freyther 157de2a8ab mtp: Only respond to regular maintainenance for our code point 2011-01-20 13:11:29 +01:00
Holger Hans Peter Freyther d8a73e24d2 isup: Allow to have a different OPC for ISUP messages. 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther cfbe80febb mtp: Send a TFA for the point codes we are routing to. 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther adf7692031 mtp: Send TRA messages on all affected point codes 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 27c5e2357f mtp: Send the TFP for every POC we want to handle. 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther bee2ed18c7 mtp: Make the input path work on a specific link of the linkset 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 1b6901ec4a stp: Forward unhandled ISUP from one end to another 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 92affdad72 mtp: Do not send anything in case the there is no link
If there is no usable link in the linkset we should not try
to send. This assumes that all incoming packages come from
links that are up. We do not check this right now but we
will have to check this.
2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther 101cd0bc83 mtp: Send the SSA/SSP for the apoc and assn of the request 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther df8597aeea mtp: Send the SSA with the affected POC for SCCP. 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther 0e2f9116f8 mtp: Rename link_data to mtp_link and move out the transport specific things
Rename link_data to mtp_link and move it into the mtp_data header
file, also remove the union to ease creating more of the subtypes.

This is done in preparation to the linkset knowing more about the
link (e.g. having a link test per link instead of per link).
2011-01-17 14:11:26 +01:00
Holger Hans Peter Freyther d91f94024e mtp: Create the SLC with all links 2011-01-17 11:27:32 +01:00
Holger Hans Peter Freyther fe72c160e2 mtp: Turn the MTPl2 link into a list of links. 2011-01-17 11:27:00 +01:00
Holger Hans Peter Freyther 069e635413 mtp: Keep an array for the SLS -> SLC mapping for active links. 2011-01-17 11:21:12 +01:00
Holger Hans Peter Freyther 569f1e171d mtp: Rename mtp_link to mtp_link_set as this is the linkset
The link_udp is actually below the linkset. We need to get this
right now and then can have multiple links.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther 346e1c4bc4 mtp: Attempt to select the sls properly in the round robin fashion
When we call the submit method with a SLS of -1 we will try
to find the next SLS to do things in a round robin way.
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther f19afaed7b sccp: Stop queueing messages between SLTM messages
Remove the queueing of messages that was added during a debugging
session and should not be needed. This will simply bringing down
the linkset.
2011-01-17 11:21:09 +01:00
Holger Hans Peter Freyther de56c22702 license: Switch to the GNU AGPLv3 for this network service 2011-01-16 20:35:13 +01:00
Holger Hans Peter Freyther 7a72556577 mtp: Allow to have a different POC for SCCP 2011-01-01 13:34:58 +01:00
Holger Hans Peter Freyther ff9cd6f8f6 mtp: Well we do not wait for the SST any more but start transmitting. 2010-12-31 21:47:14 +01:00
Holger Hans Peter Freyther 0945961af3 mtp: Add some SSNs we want to handle.
This should be really configurable. SSN=1 should always lead to a
SSA, the others depend on what we run on our end of the link.
2010-12-31 16:54:04 +01:00
Holger Hans Peter Freyther 80ab4c6066 mtp: Implement the subsystem test and respond with a SSP/SSA
The SCMG handling should be moved to a different file. Right
now the list of supported SSNs is not configurable but it should.
2010-12-31 13:40:19 +01:00
Holger Hans Peter Freyther d10a3c1b4a mtp: Attempt to fix the SCCP restart logic.
The SST is not necessary. We will have to assume the link is
established after having gotten the TRA on the Affected Point Code
and we will need to always handle the restart allowed.
2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther 3aad776b28 isup: Respond to a ISUP GRS with a GRA. 2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther 433ea2f037 isup: Implement handling GRS and GRA messages for ISUP. 2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther ae7418177e mtp: Print a TFP message on the screen when we get a message 2010-12-08 11:28:12 +01:00
Holger Hans Peter Freyther 3a80cb2593 mtp: Prepare ISUP handling, just print the ISUP part. 2010-12-08 11:12:46 +01:00
Holger Hans Peter Freyther 1291ce5f8c mtp: Print un-handled messages 2010-12-08 11:10:34 +01:00
Holger Hans Peter Freyther e976df1b5b mtp: Be able to set the spare bits in the network indicator 2010-11-26 21:07:11 +01:00
Holger Hans Peter Freyther 4e3e28e916 mtp: Store the NetworIndicator in the mtp_link and use it
Prepare to make the ni configurable and store it inside the
mtp_link where it can be changed by the user of the mtp_link.
Initialize this to the current value.
2010-11-26 21:05:39 +01:00
Holger Hans Peter Freyther 2a9bf2b615 mtp: Set the network indicator in the mtp_msg_alloc
Prepare to have different network indicators.
2010-11-26 21:01:58 +01:00
Holger Hans Peter Freyther dedb7ce3fe mtp: Ignore the spare bits as of Q.701 6.2
The sender is supposed to set them to 0 and we are asked
to ignore them. Apparently something called SIF is enabled
on the sender side.
2010-10-08 17:49:24 +08:00
Holger Hans Peter Freyther cf381e2447 Update SCCP includes for the new location of files. 2010-08-04 18:39:26 +08:00
Holger Hans Peter Freyther cbf7d18bb9 Use libosmocore instead of the old temporary laF0rge1 lib.. 2010-08-04 06:08:40 +08:00
Holger Hans Peter Freyther 5aa17014de u_int8_t -> uint8_t 2010-07-31 04:37:26 +08:00