9
0
Fork 0
Commit Graph

119 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 6c0b2e570c mtp: Make the mtp_link point to a specific type of link
We might want to be able to change the type of a link at
runtime. Decouple the link and the actual type of the link.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 1b5d846b46 mtp: Stop hardcoding the supported SSN inside the mtp_layer3.c
Stop hardcoding the supported ssn's inside the mtp_layer3.c and
make it possible to allow to configure this in the future.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther b27c9626e8 mtp: Remove the bsc pointer from the MTP LinkSet 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther a33b23f293 mtp: Rename no to nr to align with the rest of the structs 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 289436f8b6 bsc: Cleanup some fields and names 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 64b7d56dc0 ss7: Move all mtp linksets callbacks into the app layer 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther c5200fcb35 ss7: Move the linkset up/down into the ss7_app, move some code around 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther ab7c601118 ss7: Provide a way to start the application 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther a7bc3aafdc ss7: Create a SS7 application that is responsible for the routing 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 2cdb73cf4a msc: Move more state into the sccp_state.c 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 3d4d8c7b50 msc: Move the nat handling into the sccp_state for now 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 84ec8714b2 msc: Move the MSC Connection into a new header file
This is in preparation of splitting the MSC part and the
nat logic for the upcoming config rewriting.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther f7ce2c6417 m2ua: Start to separate the SCTP code and M2UA to allow multiple links
We want to be able to support multiple links over different SCTP
connection and in the future also over the same connection. This
is the first step to separate the SCTP connection handling from the
link handling inside these messages.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 694337f893 mtp: Allow to find a linkset by number 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 599c9a4b9a mtp: Allocate the MTPLinkSet as a child of the BSC
In preparation of the VTY code change, make the mtp linkset
a child of the bsc.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 2ff47b8606 bsc: Allocate the bsc with talloc instead
Allocate the bsc with talloc to have a nice root context for
everything in the system.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 7ca2b03aa6 bsc: Remove the m2ua_set pointer from the struct as well 2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther 89fa11af02 bsc: Remove the global link_set pointer from the bsc
Start removing the static names for the linkset
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther e86c02e107 bsc: Move the BSC<->MSC variables to a new struct.
Move the MSC related information out of the bsc_data and update
the code to use this BSC configuration. This is greatly cleaning
up the code and in theory there might now be two BSC and two MSCs
that one application can handle (minus the missing VTY config)
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther ee63d7d15e stp: Allow/Disallow to inject messages on the UDP/M2UA interface 2011-02-10 20:09:08 +01:00
Holger Hans Peter Freyther 0452f22a21 stp: Add code that allows to inject messages on any linkset
This can be useful to test out certain messages without having
any of the linksets be fully connected. It is not possible to
get the result. In the future this code should reply with an
M2UA error message if something went wrong.
2011-02-10 20:09:08 +01:00
Holger Hans Peter Freyther f603f28488 isup: Make it possible for the STP to handle/not handle ISUP messages
Add an option to decide if we should handle GROUP BLOCK and RESET
messages inside the STP or if we should forward those as well.
2011-01-30 00:24:15 +01:00
Holger Hans Peter Freyther 86a2a53b90 udp: Use link up/down signals from the MIB for the link
The mib was patched to send link up/down in case of failures,
only put a link service when the MIB tells us the link is
up, the failure case should only happen for remote links
failing. We will reset and go through link alignment.
2011-01-28 18:23:07 +01:00
Holger Hans Peter Freyther 38d936a445 mtp: Assign a name to linkset, use this name in the log messages 2011-01-26 12:41:42 +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 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 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 5c2e458dca debug: Add two categories to be used in the future. 2011-01-22 22:57:42 +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 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 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 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 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 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 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