9
0
Fork 0
Commit Graph

31 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther f2312cb04c sctp: Check if there is any other connection with the ASP ident
When we get an ASP UP check if there is any other ASP that is
using the same identifier and then complain.
2011-08-10 06:37:35 +02:00
Holger Hans Peter Freyther ab79b9b593 m2ua: Print information about number of SCTP connections
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-08-10 06:37:35 +02:00
Harald Welte ff397edf38 Adopt to recent libosmocore namespace changes and libosmogsm 2011-05-08 10:29:23 +02:00
Holger Hans Peter Freyther 123147a472 sctp: Mention the link index that got released 2011-03-03 01:13:26 +01:00
Holger Hans Peter Freyther 7e8ee3a4be sctp: Use the right link index when sending messages
Stop using the hardcoded link index and use the link index
of the link.
2011-03-02 22:00:24 +01:00
Holger Hans Peter Freyther 5960ba387a sctp: Handle establish request for a wrong ASP
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-03-02 21:56:03 +01:00
Holger Hans Peter Freyther a2938fee11 sctp: Fix a memory leak on connection failures. 2011-02-25 19:48:24 +01:00
Holger Hans Peter Freyther 718d4ba66c sctp: Only handle traffic with the payload type of M2UA 2011-02-25 19:47:55 +01:00
Holger Hans Peter Freyther 0e6cbc62b2 sctp: Fail if we fail to enable SCTP events on this socket
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-25 19:44:22 +01:00
Holger Hans Peter Freyther 7176030e02 vty: Add all mighty new vty interface for osmo-stp
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-23 15:25:35 +01:00
Holger Hans Peter Freyther 169a1a918c misc: Use llist_add_tail to add new links to the end 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther e62e4b05bf m2ua: Make sure all replies contain the link identifier 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther 4cee7c0901 m2ua: Start link only after we had the emergency alignment
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-17 19:34:28 +01:00
Holger Hans Peter Freyther 5e5758c783 log: Improve some logging messages across several files. 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 7c6feca7cf m2ua: Do nothing on a reset request for now.
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-17 19:34:28 +01:00
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 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 b27c9626e8 mtp: Remove the bsc pointer from the MTP LinkSet 2011-02-17 19:34:28 +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 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 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 8a96e474a2 mtp: Fix the logic... close the socket if we are blocked
Thinko or such.
2011-01-25 09:57:55 +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 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 4c1eb0ee43 stats: Count packets on a per link level 2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther bee2ed18c7 mtp: Make the input path work on a specific link of the linkset 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther c17852ee34 m2ua: Write MTP packets to the pcap file if requested. 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther d70a7e8e79 m2ua: Create a MTP Link class using SCTP/M2UA for the transport
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.
2011-01-17 14:45:15 +01:00