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
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