Holger Hans Peter Freyther
d7fb9545b6
[nat] Use the right len for the packages..
2010-06-15 20:24:06 +08:00
Holger Hans Peter Freyther
8e074ec27c
[nat] Really forward the data to the BSC
2010-06-15 20:24:06 +08:00
Holger Hans Peter Freyther
c7641c9a70
[nat] Make sure the ipaccess_bsc_cb will be called..
2010-06-15 20:24:06 +08:00
Holger Hans Peter Freyther
7625506430
[nat] Unregister the fd before leaving..
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
24614ad1c0
[nat] First code to simply forward data from the MSC to the real BSC
...
First code to simply forward the data, no filtering or patching
is in place. This will need to happen soon.
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
5aa25ae9e6
[nat] Turn off compiler warning...
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
da86c0a034
[nat] Security will become important at some point...
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
49d8068b37
[nat] Start to listen for the incoming BTS
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
6ace522847
[nat] Connect to the MSC like the real BSC
...
Use the connect_to_msc method to connect to the MSC and
create structure to handle and forward messages to the
real BSC.
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
eef86b5d59
[bsc_msc] Move the connect to the MSC routine into a new file
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
9e2c5f572a
[bsc-nat] Start with a simple NAT/MUX for a BSC
...
Harald actually pointed out that this feature is just NAT. We want
to connect n-real BSCs to one BSC Mux. We will talk the ip.access
protocol and SCCP over of this link.
The mux will drop certain GSM messages (like the reset), it will
replace source local reference (NAT functionality) and it will handle
some GSM08.08 specially.
Get the thing started...
2010-06-15 20:24:05 +08:00
Holger Hans Peter Freyther
230a4d886d
gsm48: Split LU Reject sending and generation into two.
2010-06-15 19:40:05 +08:00
Holger Hans Peter Freyther
2c0f16699e
gsm48: Separate CM Service Reject sending and creation.
...
Split out the msg generation from the sending, this will
be used by the nat to send a refusal message.
2010-06-15 19:39:27 +08:00
Holger Hans Peter Freyther
580cb83ae3
Merge branch 'on-waves/sccp'
2010-06-15 17:06:45 +08:00
Holger Hans Peter Freyther
9140174faa
bsc_api: Remove the lchan argument from gsm48_tx_mm_info.
2010-06-15 14:16:02 +08:00
Holger Hans Peter Freyther
d521d97976
bsc_api: Remove the lchan argument from the mm_tx_identity_req method.
2010-06-15 14:11:01 +08:00
Holger Hans Peter Freyther
7bc5ba3674
bsc_api: Remove lchan from LU Reject...
...
Remove the lchan from the signature, the removal of the
msg->lchan will follow as a next step.
2010-06-15 14:09:34 +08:00
Holger Hans Peter Freyther
dc5db2424d
bsc_api: Kill the lchan argument from the LU Accept Method.
2010-06-15 14:07:27 +08:00
Holger Hans Peter Freyther
9c137a7819
bsc_api: Move most of GSM0408 to the DTAP API...
...
* gsm_04_08_utils.c will directly send the message...
* gsm_04_08.c will use the DTAP API, add a new method to pull
in the data from the transaction...
2010-06-15 13:57:40 +08:00
Holger Hans Peter Freyther
f6fb3efcba
bsc_api: Switch gsm_04_08.c to use the clear request of the API.
2010-06-15 13:16:52 +08:00
Holger Hans Peter Freyther
ecd9933826
gsm_04_11: Place subscr_put_channel whenever being done with SMS.
2010-06-15 12:53:08 +08:00
Holger Hans Peter Freyther
cea722bc51
gsm_04_11: Speculative leak fix for the SMS...
2010-06-15 12:29:37 +08:00
Holger Hans Peter Freyther
6a3d765bf9
bsc_api: Do not use RLL inside the SMS code, handle SAPI n REJECT
...
Directly send a SMS using the send method, in case of an error
we will need to find the transaction and free the SMS and the
transaction.
2010-06-15 12:04:34 +08:00
Holger Hans Peter Freyther
43b0909394
bsc_api: Create osmo_msc, and initialize the MSC API in the bsc_init.
2010-06-15 12:04:34 +08:00
Holger Hans Peter Freyther
9c595b7474
bsc_api: Implement transparent RLL establishment and SAPI n REJECT
...
When submitting a DTAP message, the BSC API will attempt to
establish the RLL layer and then send the message or send an
SAPI n REJECT. This will be used by the SMS code.
2010-06-15 12:04:34 +08:00
Holger Hans Peter Freyther
0cfbe26cb9
bsc_api: Add newline to the end of the file.
2010-06-15 12:04:34 +08:00
Harald Welte
f7332e012c
move rrlp-ephemeris to its own git tree
...
This project has been moved to git://git.osmocom.org/osmocom-lcs.git
2010-06-14 21:30:40 +02:00
Sylvain Munaut
d04b9edfa3
auth: Add missing include/auth.h
...
Doh !
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:54:02 +02:00
Harald Welte
eabb142c70
require libosmocore 0.1.11 to make encryption compile
2010-06-14 20:48:26 +02:00
Sylvain Munaut
e824d9c2a1
auth: Add support for XOR test A3A8 algo (and vty commands)
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:53 +02:00
Sylvain Munaut
c593cf100a
gsm_04_08: Improve gsm48_rx_mm_auth_resp debug in failure case
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:52 +02:00
Sylvain Munaut
0c873a06b6
vty/auth: Make sure we clear the last tuple when changing auth params
...
If the Ki or auth algo changes, chances are that the last tuple cannot
be used anymore, so clear it.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:52 +02:00
Sylvain Munaut
ba87f458ec
gsm_04_08: Establish secure channel on CM SERVICE REQUEST
...
Note that establishing a secure channel is considered to
be an implicit CM SERVICE ACK.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:52 +02:00
Sylvain Munaut
267fba0a2b
gsm_04_08: Establish secure channel on LOCATION UPDATE
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:51 +02:00
Sylvain Munaut
2030a2a228
gsm_04_08: Store the key_seq given in LOC UPD REQUEST in state
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:51 +02:00
Sylvain Munaut
30a15384f4
gsm_04_08: Add a operation to enable ciphering on a lchan
...
This will take care of the auth/check/enable cipher sequence
and call a callback function when done.
Currently the negotiated Kc is saved but not re-used, so
there is an authentication each time ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:51 +02:00
Sylvain Munaut
31ac307130
db: Fix typo in sync_lastauthtuples SQL UPDATE stmt
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:51 +02:00
Sylvain Munaut
92b2ff5081
db: Change naming convention for auth info functions
...
- exported function have a 'db_' prefix
- use 'sync' vs 'set'
- use 'for' vs 'by'
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:50 +02:00
Sylvain Munaut
10bf812a6a
db: Use subscriber_id as primary key for AuthKeys/AuthLastTuples
...
It's unique and not null and we never use 'id' anyway.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:50 +02:00
Sylvain Munaut
c614a6a199
db: Rename AuthTuples to AuthLastTuples
...
Ultimately, we'll need to store both the last used tuple by a
subscriber and a list of known tuples (for unknown Ki). What's
currently implemented for AuthTuples is the former behavior, so
reflect that.
The second use case will be added as a separate table with separate
accessors later on.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:50 +02:00
Sylvain Munaut
b48216f9d1
auth: Add #define for special value for key_seq
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14 20:43:48 +02:00
Harald Welte
993d06065a
[GPRS] Add comment on GTP being defined in 29.060 / 09.060
2010-06-14 17:00:51 +02:00
Holger Hans Peter Freyther
2844144afd
GPRS: Increase the NS msg size to 2048
...
According to the GPRS NS spec the maximum framesize
is 1600 octets for FrameRelay, it can be bigger if
configured to be so. Make it 2048 octets to have some
space available...
2010-06-14 22:11:40 +08:00
Holger Hans Peter Freyther
abcddf1152
bsc_api: Add init, dispatch the clear request when a channel is going missing
2010-06-14 18:26:09 +08:00
Holger Hans Peter Freyther
2a9285c028
bsc_api: Move some parts over to the BSC API.
2010-06-14 18:26:09 +08:00
Holger Hans Peter Freyther
8e78fa7862
gsm_04_11: Attempt to fix some possible memory leaks in the SMS code
...
Sometimes we need to free the SMS, sometimes also the transaction.
2010-06-14 16:13:16 +08:00
Holger Hans Peter Freyther
4cd5158874
gsm_04_11: Remove some old code.
2010-06-14 16:06:39 +08:00
Holger Hans Peter Freyther
05a379b857
bsc_api: Add a callback based BSC -> MSC api...
2010-06-14 15:50:35 +08:00
Sylvain Munaut
644a0cac0c
[gprs] bssgp: Fix LLC PDU length encoding in BSSGP.
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-10 15:15:42 +02:00
Sylvain Munaut
eda125ca51
[gprs] sndcp: Fix call to msgb_alloc_headroom to have both head&tail room
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-10 15:15:42 +02:00