aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_msc.h
AgeCommit message (Collapse)AuthorFilesLines
2015-07-01bsc: Check for the rand and then generate a resHolger Hans Peter Freyther1-1/+1
Check if the NAT has sent 16 bytes of RAND and if a key has been configured in the system and then generate a result using milenage. The milenage res will be sent and noth the four byte GSM SRES derivation.
2015-07-01bsc/nat: Fix the structure of the identity request messageHolger Hans Peter Freyther1-1/+1
Unfortunately the basic structure of the response is broken. There is a two byte length followed by data. The concept of a 'tag' happens to be the first byte of the data. This means we want to write strlen of the token, then we want to write the NUL and then we need to account for the tag in front. Introduce a flag if the new or old format should be used. This will allow to have new BSCs talk to old NATs without an additional change. In the long run we can clean that up.
2014-05-09bsc: Fix compilation on FreeBSDNikola Kolev1-0/+2
FreeBSD uses POSIX netinet/in.h for representing socket addresses data types. [Holger removed the #ifdef and changed the order of includes to have specific ones first and system includes later]
2014-04-01ipa: Use enhanced ipa_msg_recv_buffered() to cope with partioned IPA messagesJacob Erlbeck1-0/+2
The old ipa_msg_recv() implementation didn't support partial receive, so IPA connections got disconnected when this happened. This patch adds the handling of the temporary message buffers and uses ipa_msg_recv_buffered(). It has been successfully tested by jerlbeck with osmo-nitb and osmo-bsc. Ticket: OW#768 Sponsored-by: On-Waves ehf
2013-09-03bsc_msc: Add a name field to the MSC Connection to differentiate linksHolger Hans Peter Freyther1-0/+2
Assign a static name to a MSC Connection and use it. In case there are multiple connections we can now more easily identify them. This is only used for the NAT right now, the BSC could start to name the various MSC connections too.
2011-05-06src: use namespace prefix osmo_wqueue*Pablo Neira Ayuso1-1/+1
Summary of changes: s/struct write_queue/struct osmo_wqueue/g s/write_queue_init/osmo_wqueue_init/g s/write_queue_clear/osmo_wqueue_clear/g s/write_queue_enqueue/osmo_wqueue_enqueue/g s/write_queue_bfd_cb/osmo_wqueue_bfd_cb/g
2011-05-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso1-2/+2
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-04-26bsc: Allow to have a list of MSCs/MUXs to connect toHolger Hans Peter Freyther1-4/+12
Be able to configure a list of destinations (duplicates allowed) that will be tried in a round robin fashion. The change is in the bsc_msc_connection to operate on a list. We achieve the round robin nature with the same trick used in the paging code to delete and append the current entry. The nat code was updated to compile but one can only configure one destination.
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso1-2/+2
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-01-01License change: We are now AGPLv3+ instead of GPLv2+Harald Welte1-6/+5
The reason for this is quite simple: We want to make sure anyone running a customized version of OpenBSC to operate a network will have to release all custom modifiations to the source code.
2010-07-05nat: Store the msc_con in the data of the bsc_fdHolger Hans Peter Freyther1-0/+1
* Stop using nat->msc_con in the read_cb but use the data.
2010-06-15msc: Add msc ip-tos NR option for the BSCHolger Hans Peter Freyther1-1/+2
Allow to set the TOS field via the VTY interface. The SO_PRIORITY was not used as it has no effect on the packets being sent (in contrast to the documentation).
2010-06-15[bsc_msc] Move the id get response into the bsc_msc.cHolger Hans Peter Freyther1-0/+2
Create the message in a common place and then it can be used by tools having an a link or such.
2010-06-15bsc_msc: Add a connection timeout for the MSC.Holger Hans Peter Freyther1-0/+1
When no one is listening our connection would get stuck in the SYN_SENT state and we would be there forever.
2010-06-15bsc_msc_ip.c: Create the GSM network earlier, send the reset on each connectionHolger Hans Peter Freyther1-0/+1
Create the GSM network at the end of the init, send the GSM reset on each reconnection and close a small window when we would send a SCCP msg before being authenticated. For that we have introduced an authenticated into the bsc_msc struct and will manage it inside the bsc_msc_ip.c
2010-06-15msc: Create a real interface for BSC MSC and start handling reconnectsHolger Hans Peter Freyther1-2/+18
Create a BSC<->MSC interface and use it for the BSC MSC IP and the BSC NAT to reduce code duplication on handling reconnects to the MSC and cleaning up the local state. The code is only partially tested and will contain bugs. Currently both the BSC and the NAT will just exit on connection loss and this way have the current behavior.
2010-06-15Correct the company name. It should be On-Waves (ehf)Holger Hans Peter Freyther1-1/+1
2010-06-15nat: Redo a merge with master that happend at this time.Holger Hans Peter Freyther1-1/+1
2010-06-15[bsc_msc] Move the connect to the MSC routine into a new fileHolger Hans Peter Freyther1-0/+30