9
0
Fork 0
Commit Graph

429 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 3c2b84c607 vty: Show the SLC mapping of a linkset 2011-01-24 21:20:34 +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 3a1c0af868 udp: Create a SNMP session per UDP
We do not have the multiple callbacks from SNMP under control
and we can only save the last request if the SNMP Session is
inside the link. This is mostly a workaround for Net-SNMP and
the missing documentation on the async functionality.
2011-01-24 20:21:11 +01:00
Holger Hans Peter Freyther 4e2e242d70 mtp: Show blocked links as blocked in the vty stat 2011-01-24 16:14:26 +01:00
Holger Hans Peter Freyther 315ec675ba mtp: Implement VTY routines to block,unblock,reset a link
This can help in link management and reconfiguration of a
link at runtime. It is also a good engineering mode for
multiple linksets.
2011-01-24 16:14:25 +01:00
Holger Hans Peter Freyther ea5ce23d72 mtp: Make it possible to block a link.
The semantic of a block is to take the physical
link down, call mtp_link_down and to make sure
that the link remains down and no packets are
forwarded there. The unblock call will reset the
link and this should get it back into operation
again.
2011-01-24 15:35:08 +01:00
Holger Hans Peter Freyther 8ade9b7bc2 pcap: Fix stupid bug and unbreak pcap writing 2011-01-23 16:18:18 +01:00
Holger Hans Peter Freyther fca7b12e0d vty: Install the vty logging commands 2011-01-22 23:19:44 +01:00
Holger Hans Peter Freyther 16b07c645b pcap: Dump each packet in the DCAP category 2011-01-22 23:19:27 +01:00
Holger Hans Peter Freyther 0292127467 debug: Set the right debug area for the M2UA code 2011-01-22 23:05:03 +01:00
Holger Hans Peter Freyther 5c2e458dca debug: Add two categories to be used in the future. 2011-01-22 22:57:42 +01:00
Holger Hans Peter Freyther 1b47ce5b9b stat: Dump a name next to the OPC 2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther 5b2fe8d45b pcap: Allow to start tracing on a specific linkset after app start
Allow to start to trace on a specific linkset after the application
has been started. This allows to stop tracing on a linkset as well.
2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther f6375b49d3 pcap: Allow to log on a link or linkset level 2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther 36260e915a pcap: Classify the direction of such a message 2011-01-22 21:33:18 +01:00
Holger Hans Peter Freyther ddf8eae7da pcap: Run all pcap operations through one method 2011-01-22 21:33:11 +01:00
Holger Hans Peter Freyther c6bfa27b5e udp: Allow to create multiple links via UDP
This is the easiest way to support multiple links over UDP.
Specify the number you want and they will be initiated. All
these links will run via the same UDP port.
2011-01-22 17:24:06 +01:00
Holger Hans Peter Freyther 0b31622482 vty: Print the MSC status on the VTY for relay/cellmgr 2011-01-22 16:43:14 +01:00
Holger Hans Peter Freyther a310e53243 vty: Classify the application that we run and provide different options
The VTY interface is used for three different application and not
every option will make sense for every app. In the long run we will
split the vty interface but for now we just qualify the application.
2011-01-22 16:34:16 +01:00
Holger Hans Peter Freyther fbfe8eb81d Merge branch 'on-waves/stats' 2011-01-22 16:22:28 +01:00
Holger Hans Peter Freyther 60af5dd57a stats: Print some statistics about the state of the current set 2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther 51b9e7a396 stats: Implement VTY command to dump the linksets 2011-01-22 16:22:18 +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 aafa7c788e stats: Add rate_counter for more statistics on the MTP side 2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther 7d7c711a43 Merge branch 'on-waves/multiple-links' 2011-01-21 19:50:19 +01:00
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