Harald Welte
ff397edf38
Adopt to recent libosmocore namespace changes and libosmogsm
2011-05-08 10:29:23 +02:00
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
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
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
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
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
ab7c601118
ss7: Provide a way to start the application
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
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
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
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
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
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
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
8ade9b7bc2
pcap: Fix stupid bug and unbreak pcap writing
2011-01-23 16:18:18 +01:00
Holger Hans Peter Freyther
16b07c645b
pcap: Dump each packet in the DCAP category
2011-01-22 23:19:27 +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
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
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
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
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
b4b747d7f7
mtp: Stop assigning the link_set it will be done in mtpl3
2011-01-20 15:39:40 +01:00
Holger Hans Peter Freyther
d8a73e24d2
isup: Allow to have a different OPC for ISUP messages.
2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther
0e2f9116f8
mtp: Rename link_data to mtp_link and move out the transport specific things
...
Rename link_data to mtp_link and move it into the mtp_data header
file, also remove the union to ease creating more of the subtypes.
This is done in preparation to the linkset knowing more about the
link (e.g. having a link test per link instead of per link).
2011-01-17 14:11:26 +01:00
Holger Hans Peter Freyther
0f833b084b
mtp: take the linkset down when the last link is failing
2011-01-17 11:27:01 +01:00
Holger Hans Peter Freyther
fe72c160e2
mtp: Turn the MTPl2 link into a list of links.
2011-01-17 11:27:00 +01:00
Holger Hans Peter Freyther
069e635413
mtp: Keep an array for the SLS -> SLC mapping for active links.
2011-01-17 11:21:12 +01:00
Holger Hans Peter Freyther
644aafbc94
mtp: Make the link_data be a child of the link_set
...
Change the order of the link and linkset. The link will be
below the linkset. This change should make it more easy to
introduce multiple linksets.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther
c8405692b3
mtp: Propagate link and linkset failures in two stages
...
Handle a single link failure in links.c and if all the
links have failed propagate it up. This is preparing the
multiple links support.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther
569f1e171d
mtp: Rename mtp_link to mtp_link_set as this is the linkset
...
The link_udp is actually below the linkset. We need to get this
right now and then can have multiple links.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther
45738887be
mtp: Kill the link variable from the mtp link.
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther
b6edf97481
linkset: Prepare the UDP support to support multiple links.
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther
016ba29ec2
msc: Remove the msc_clear_queue now that it is not needed
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther
a99b04b700
mtp: Move the link code into a new file called links.
2011-01-17 11:21:09 +01:00