Holger Hans Peter Freyther
639d77b6fb
links: Fix the init code for the old cellmgr_ng code
2011-02-25 16:29:45 +01:00
Holger Hans Peter Freyther
03fc66074b
counter: Fix the wrong counter size.
2011-02-23 17:41:23 +01:00
Holger Hans Peter Freyther
af3faf8a81
vty: Allow to specify 14 bits for the CPC.
2011-02-23 16:59:45 +01:00
Holger Hans Peter Freyther
d062f8318e
mtp: Call the mtp_link_set always set otherwise things get confusing
...
In a backtrace it is confusing to see variables called link and link
and one is a mtp_link and the other is a mtp_link_set.
2011-02-23 16:58:15 +01:00
Holger Hans Peter Freyther
765fba3fd0
msc: Remove unused method from the code
2011-02-23 16:54:50 +01:00
Holger Hans Peter Freyther
4c9dd160c3
sccp: The link attribute was never used leading to a crash
...
Right now we assume that the source of an application with
SCCP state tracking is a linkset. Send the message to that
linkset.
2011-02-23 16:11:21 +01:00
Holger Hans Peter Freyther
47c9faac3b
mtp: Attempt to implement the MTP Restart properly
...
For the SSP functionatilty we will need to have the timers T18
and T20. In the period of T18 we will collect TFP/TFR/TFA for the
reachable nodes of the system. Each of this node will send us a TRA
when it is finished. Right now we assume to only have one node and
stop the T18 after the TRA of this node. Then we would need to send
the TFP/TFR we have collected. On the expiry of the T20 timer we
will need to send our TRA and notify local users.
For more complex routing we will need to have a shared routing
cache and remember which SSNs and OPCs are reachable and have inter
linkset notifications.
2011-02-23 15:27:09 +01:00
Holger Hans Peter Freyther
8d7027846f
mtp: Do not start linktest on a blocked link
2011-02-23 15:25:36 +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
2917644d50
vty: Move the actual commands into a new file in preparation
2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther
318e830463
vty: Always work through the linkset number for the commands
2011-02-22 21:05:59 +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
cfe9d718e2
vty: Remove more globals from the bsc data.
...
This is a interim solution until we have the new and all mighty
new config file format. This should work for now, makes the init
abit harder to understand though.
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
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