aboutsummaryrefslogtreecommitdiffstats
path: root/src/sctp_m2ua.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-18misc: Address warnings coming from clangHolger Hans Peter Freyther1-1/+0
* Include stdlib.h before the snmp headers to have a free declaration * Use sprintf(dest, "%s", str) to avoid format string attacks * Avoid bogus assignment. This pattern was used for marking something as unused in the past.
2012-07-01adler: Remove the SCTP hack that we needed to force the adler checksumHolger Hans Peter Freyther1-3/+0
Remove the hack that was required for inter-op. The equipment will migrate to the CRC32 checksum soon.
2011-08-10sctp: Really apply the MSC workaroundHolger Hans Peter Freyther1-16/+9
The MSC workaround was added in 5960ba387aa84574fc8b9df20ea98ca1594d1658 but it has never worked as in 8fd28dbbe64cb32e5f296bd2679cebf03b5d14c0 (earlier) we were checking for link->conn != conn in the dispatch method. Move the code over to the generic dispatch and check for NULL.
2011-08-10sctp: Check if there is any other connection with the ASP identHolger Hans Peter Freyther1-0/+15
When we get an ASP UP check if there is any other ASP that is using the same identifier and then complain.
2011-08-10m2ua: Print information about number of SCTP connectionsHolger Hans Peter Freyther1-1/+17
It appears that it is possible to have a stale SCTP connection and this added LOGL_NOTICE and the VTY interface might help to identify this situation in the future (the mean time of failure is about five month).
2011-05-08Adopt to recent libosmocore namespace changes and libosmogsmHarald Welte1-10/+10
2011-03-03sctp: Mention the link index that got releasedHolger Hans Peter Freyther1-1/+1
2011-03-02sctp: Use the right link index when sending messagesHolger Hans Peter Freyther1-1/+1
Stop using the hardcoded link index and use the link index of the link.
2011-03-02sctp: Handle establish request for a wrong ASPHolger Hans Peter Freyther1-4/+13
The MSC we test is not sending an ASP Active when the link is unblocked. If the m2ua_link has no connection associated we will forgive the MSC and active it.
2011-02-25sctp: Fix a memory leak on connection failures.Holger Hans Peter Freyther1-0/+1
2011-02-25sctp: Only handle traffic with the payload type of M2UAHolger Hans Peter Freyther1-1/+9
2011-02-25sctp: Fail if we fail to enable SCTP events on this socketHolger Hans Peter Freyther1-5/+10
Without events we don't have access to the SCTP sndrcvinfo and the ppid in it and we will do bad things like sending M2UA on PPID 0.
2011-02-23vty: Add all mighty new vty interface for osmo-stpHolger Hans Peter Freyther1-28/+27
This new interface allows to have multiple linksets, msc connections and ways to connect those in one instance of the osmo-stp. Forbid to reset linksets without an app.
2011-02-22misc: Use llist_add_tail to add new links to the endHolger Hans Peter Freyther1-1/+1
2011-02-22m2ua: Make sure all replies contain the link identifierHolger Hans Peter Freyther1-1/+11
2011-02-17m2ua: Start link only after we had the emergency alignmentHolger Hans Peter Freyther1-3/+7
This should avoid us getting an error as we are sending the SLTM too fast. In one way this makes sense, on the other hand we already have too many states and should remove some variables
2011-02-17log: Improve some logging messages across several files.Holger Hans Peter Freyther1-1/+1
2011-02-17m2ua: Do nothing on a reset request for now.Holger Hans Peter Freyther1-4/+10
Only restart the link test on this link in case the link is present and we need to do things. The link up/down should be controlled in a different way.
2011-02-17m2ua: Keep the M2UA ASP state in the mtp_m2ua_linkHolger Hans Peter Freyther1-34/+88
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-17m2ua: Include the interface identifier in the notify messageHolger Hans Peter Freyther1-2/+5
2011-02-17mtp: Make the mtp_link point to a specific type of linkHolger Hans Peter Freyther1-13/+26
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-17mtp: Remove the bsc pointer from the MTP LinkSetHolger Hans Peter Freyther1-3/+4
2011-02-17m2ua: Start to separate the SCTP code and M2UA to allow multiple linksHolger Hans Peter Freyther1-55/+116
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-17bsc: Allocate the bsc with talloc insteadHolger Hans Peter Freyther1-2/+0
Allocate the bsc with talloc to have a nice root context for everything in the system.
2011-02-17m2ua: Close a huge memory leak in the m2ua code.Holger Hans Peter Freyther1-3/+6
2011-01-26sctp: Close the socket if we get <= 0 as a result for sctp_rcvmsgHolger Hans Peter Freyther1-1/+1
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-25mtp: Fix the logic... close the socket if we are blockedHolger Hans Peter Freyther1-1/+1
Thinko or such.
2011-01-24mtp: Make it possible to block a link.Holger Hans Peter Freyther1-3/+11
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-22pcap: Classify the direction of such a messageHolger Hans Peter Freyther1-2/+2
2011-01-22pcap: Run all pcap operations through one methodHolger Hans Peter Freyther1-4/+2
2011-01-22stats: Count packets on a per link levelHolger Hans Peter Freyther1-2/+9
2011-01-20mtp: Make the input path work on a specific link of the linksetHolger Hans Peter Freyther1-1/+1
2011-01-20m2ua: Write MTP packets to the pcap file if requested.Holger Hans Peter Freyther1-1/+10
2011-01-17m2ua: Create a MTP Link class using SCTP/M2UA for the transporton-waves/m2uaHolger Hans Peter Freyther1-0/+631
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.