Harald Welte
056984fab1
merge (+rename) iu_helpers.c into libosmo-ranap
2016-01-03 16:31:31 +01:00
Harald Welte
706213ac4b
Fix typo / spelling mistakes
2015-12-25 10:33:09 +01:00
Harald Welte
2963ee2505
hnbgw_hnbap: Print HNBAP Cause during UE De-Register
2015-12-25 10:32:37 +01:00
Harald Welte
c4338deee9
hnbgw: Bring all parts together
...
We now have the RUA and SUA parts interconnected by the
context ID mapper, and should be able to pass messages back and forward
between both sides.
Unfortunately this touches a bit of everything, but the structures are
all still very much in flux. Hopefully they will start to stabilize at
some point soon...
2015-12-24 00:41:45 +01:00
Harald Welte
ffa7c0ad39
use msgb_sctp_ppid() from libosmo-netif, remove local declaration
2015-12-23 00:04:05 +01:00
Daniel Willmann
541e429a39
hnbgw_hnbap.c: Clean up after encoding a UE register accept
...
Need to free the ASN.1 structs after using them to encode the UE
register accept message.
2015-12-22 16:40:46 +01:00
Daniel Willmann
5f810f4222
hnbgw_hnbap: Initialize return value and always return something
2015-12-17 17:57:51 +01:00
Daniel Willmann
59d17d8961
hnbap: Free ASN.1 components after they are no longer needed
2015-12-17 17:56:56 +01:00
Daniel Willmann
bded9841b5
hnbgw: Change logging priorities and add HNBAP category
...
Log hnbap messages to the HNBAP category. Change MAIN category to only
log INFO and above and change SCTP notification message to debug.
2015-12-17 13:09:18 +01:00
Daniel Willmann
efceb187aa
hnbgw_hnbap: Process UEDeRegister and try to free correct UE
2015-12-17 13:09:18 +01:00
Daniel Willmann
9224731379
asn1helpers: Fix 24 bit conversion function and use it in hnbgw_hnbap
...
The 32 bit int needs to be shifted left one byte so the correct bytes
end up at the beginning of the bit string buffer.
2015-12-14 10:36:36 +01:00
Daniel Willmann
d6a45b402c
asn1helpers: Add 28 bit conversion function and use it for Cell ID
...
The padding bits in the bit string are at the end and the byte-order is
MSB-first. This means the number needs to be shifted left so the padding
bits are the least significant.
2015-12-14 10:21:51 +01:00
Harald Welte
77847ad020
add copyright statement and AGPLv3 headers to source code files
2015-10-06 22:07:04 +02:00
Harald Welte
6286880caa
the Context ID is a 24bit number, we cannot use len = 4 bytes!
2015-09-18 01:23:55 +02:00
Harald Welte
1d2c39d83b
various cleanups (compiler warnings, coding style)
2015-09-11 17:49:37 +02:00
Harald Welte
393f2bd9fb
move BCD string encoding/decoding functions to iu_helpers.[ch]
2015-09-11 17:13:51 +02:00
Harald Welte
3af1db87ed
hnbap: Print error messages in error cases
2015-09-11 17:03:16 +02:00
Harald Welte
10dfc5a97d
respond to HNBAP UE REGISTER REQ withe correspnding ACCEPT
...
The Accept incudes the IMSI that the phone presented, but
somehow we fail to encode the Context ID as bitstring, see
../pcap/20150911-hnbap-ue_register.pcap
2015-09-11 01:36:44 +02:00
Harald Welte
b534e5c085
introduce ue_context management
...
We keep one 'ue_context' structure for every UE that we see
a UE REGISTER REQUEST for.
2015-09-11 00:15:54 +02:00
Harald Welte
7b54e32c63
hnbap: Don't enqueue a NULL msgb for transmit
2015-09-07 22:41:45 +02:00
Harald Welte
3f71256750
Use implement HNBAP transmit using per-hnb write_queue
2015-09-07 22:25:35 +02:00
Harald Welte
2204f9d43d
hnbgw: zero-initialize the output struct before aper_decode()
...
asn1c has this strange behavior that the _output_ struct must be
zero-initialized.
2015-09-07 22:25:35 +02:00
Harald Welte
27f9c4ab4b
migration of code from ffasn1c to asn1c + asn1tostruct.py
2015-08-30 22:48:59 +02:00
Harald Welte
ee77cff224
hnbgw: Actually link in + call ffasn1c runtime library
2015-08-30 16:57:53 +02:00
Harald Welte
30afef3073
move asn.1 helper functions to asn1helpers.[ch]
2015-08-30 12:28:29 +02:00
Harald Welte
b3dae30e5e
first compiling code (untested)
2015-08-30 12:20:09 +02:00
Harald Welte
a2e6a7a05e
further tiny steps of progress on the hnb-gw infrastructure
2015-08-29 21:47:39 +02:00
Harald Welte
ba43de4bf6
very early intial code snippets for handling HNBAP in a HNB-GW
2015-08-29 20:33:16 +02:00