9
0
Fork 0
Commit Graph

152 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther eab20964b2 udp: Make the SNMP code asynchronous
Do not block the application when doing a SNMP request. Work
with the results coming back from the callback. Right now a
link can only be taken down and up.
2011-01-21 19:40:49 +01:00
Holger Hans Peter Freyther 4da421da6f udp: Make two snmp functions internal 2011-01-21 18:01:37 +01:00
Holger Hans Peter Freyther 083a30b9b8 udp: Poll SNMP for timeouts and fd every 100ms
This is the easiest way to integrate net-snmp with the event loop,
every 100ms we are going to check for timeouts or incoming messages
2011-01-21 18:01:36 +01:00
Holger Hans Peter Freyther f38114eee2 udp: Allow to run multiple links through the same socket
The UDP socket will be shared between multiple links, the
snmp session will be also shared between multiple links on
the same hardware.
2011-01-21 18:01:36 +01:00
Holger Hans Peter Freyther e250ac3f4b msc: Fix crash due pong timeout started from a msc reset
This is fixing a crash that is caused by the MTP link going
down/up and the main routines asking to send a reset to the
MSC. The sending of a reset is triggering the ping/pong
timeouts. In case there is no MSC connection we could crash.
2011-01-21 12:58:08 +01:00
Holger Hans Peter Freyther 42f9aa94ba Merge branch 'on-waves/multiple-links' 2011-01-20 19:51:36 +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 fa8cf2d938 mtp: Create a method for a link failure to restart the link.
Make sure that a failed link will be restarted by calling the
reset method which should take the link down.
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 b4b747d7f7 mtp: Stop assigning the link_set it will be done in mtpl3 2011-01-20 15:39:40 +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 925d566c18 mtp: Fix the address mask, macro to extract opc/dpc
Fix the address mask, add macro to extract the DPC
and OPC from an address. Write a test case for this.
2011-01-20 13:11:29 +01:00
Holger Hans Peter Freyther 460a8eb865 Merge branch 'on-waves/stp' 2011-01-20 11:49:47 +01:00
Holger Hans Peter Freyther 69e71e0670 isup: Attempt a short cut in the link bring up by sending a unblock
Attempt to unblock all circuits after the Gateway has blocked them. In
the ISUP spec we would need to go through the continuity test and such.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther 8f6eb5e688 isup: Handle a CGB with a CGBA and claim all circuits to be blocked
This is to help the Exchange B to go through the start procedure.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther ecd835500e isup: Make status parsing and status response be generic 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther 6e11bee8cf isup: Attempt to handle a RSC on the exchange 2011-01-20 11:49:39 +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 a79ac9be8d isup: ANSI/ITU have a different idea about the CIC and spare bits
There can be 2 or 4 spare bits depending on the ISUP spec, it is
better to handle this in higher code and assume the whole thing is
a cic.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther a4661fb228 isup: Fix the lebgth check in this packet 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther b4dd029632 isup: Add the isup_types.h to the header files (fixes distcheck) 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther f0a5139a7b mtp: Add defines for the test messages 2011-01-20 11:37:51 +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 84899a484c stp: Set the pcap fd properly... WIP merge this 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther efbd8c2e80 stp: Allow to forward all ISUP messages without any modification 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 9cf11bc109 stp: Create a M2UA link by hand and connect the SCCP routines
This is a hacked version that will just forward SCCP from one
linkset to another one. It is missing configuration and ISUP.
2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther a93b83bf99 stp: Begin to implement a signalling transfer point
This is creating a new application that will be a signalling
transfer point. Right now it is a stripped down version of
the udt_relay, which is a stripped down version of cellmgr_ng.
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 c17852ee34 m2ua: Write MTP packets to the pcap file if requested. 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther e13c5aa418 Merge branch 'on-waves/m2ua' 2011-01-17 15:15:05 +01:00
Holger Hans Peter Freyther d70a7e8e79 m2ua: Create a MTP Link class using SCTP/M2UA for the transport
This is a MTP Link that can be used with a MTP LinkSet. E.g. with
some config changes one could use cellmgr_ng or udt_relay over a
M2UA link.
2011-01-17 14:45:15 +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 4a3743440b Merge branch 'on-waves/multiple-links' 2011-01-17 11:29:07 +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 0f833b084b mtp: take the linkset down when the last link is failing 2011-01-17 11:27:01 +01:00
Holger Hans Peter Freyther 85e17d1224 mtp: Remove the forced_down as it is never read in that application 2011-01-17 11:27:00 +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