9
0
Fork 0
Commit Graph

429 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 8fd28dbbe6 m2ua: Keep the M2UA ASP state in the mtp_m2ua_link
This change allows to run multiple links over the same SCTP
connection or multiple SCTP connections. It does not yet
support fail over handling or load balancing but that seems
possible now.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 41df6c5978 m2ua: Include the interface identifier in the notify message 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 5a34c7f6f8 mtp: Rename link_no to nr, add a name like for the other commands 2011-02-17 19:34:28 +01:00
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 ea247c1d0a vty: Move link commands from the name to the linkset number 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 4096d12ee0 bsc: Print the talloc allocation report on SIGUSR1 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 5cd45e16ef bsc: Move the signal handling code over to the bsc.c 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 2d4891ff8c bsc: Move the option parsing into the common code in bsc.c 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 1927e638e1 m2ua: Close a huge memory leak in the m2ua code. 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther b187049925 vty; Remove the lac/mnc/mcc option as this was never implemented 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther dd32ae5403 msc: The udt_relay could be implemented with the normal cellmgr now
Simplify the code and remove the standalone udt_relay application,
the job can be done with cellmgr_ng. This will happen after we have
settled for a new config file format.
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther cea4518410 msc: In forward_only mode never ask any of the connection tracking code
For the forward only code we never want to go through the other
cases, make sure to always return.
2011-02-10 20:09:09 +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 43b015a8ea bsc: Move the connection tracking code out of main file 2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther bf5eada0aa bsc: Stop using the bsc.link_set directly 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 6b71fd6192 vty: Fix the help and the parameters for the trace command 2011-01-31 22:41:03 +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 d3f412bbd5 mtp: Turn error messages into full sentences.
Turn the error messages into full sentences that
end with a full stop. Try to put the link set name
and the link number into these messages.
2011-01-28 18:52:16 +01:00
Holger Hans Peter Freyther 309d79f5ed mtp: Forbid link up/failure on blocked links. 2011-01-28 18:26:20 +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 122d604838 mgcp: Turn the endpoint-offset into a proper config option 2011-01-26 13:20:32 +01:00
Holger Hans Peter Freyther 1cf3a83780 mgcp: Make it possible to control the offset from Endpoint to CIC 2011-01-26 12:51:22 +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 c5562bde48 sctp: Close the socket if we get <= 0 as a result for sctp_rcvmsg
The manpage says that -1 is the indication for error but on 2.6.12
we just ended up in a infinite loop as select shows the socket as
readable but a recvmsg does not give any data.
2011-01-26 11:02:42 +01:00
Holger Hans Peter Freyther 44f848b086 mgcp: Merge from master to respond to a RQNT 2011-01-25 23:43:55 +01:00
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 4c8ddb356c vty: Fix the up/down of the MSC link 2011-01-25 13:18:59 +01:00
Holger Hans Peter Freyther 8b997bb456 configure: We do not want to always link to -lsctp
The AC_CHECK_LIB is always setting the LIBS variable and this
will be used for every linker call. We do not want this.
2011-01-25 12:26:59 +01:00
Holger Hans Peter Freyther 8a96e474a2 mtp: Fix the logic... close the socket if we are blocked
Thinko or such.
2011-01-25 09:57:55 +01:00