Neels Hofmeyr
8f62106d5d
hnbgw: remove unused static function
2016-04-25 15:25:12 +02:00
Neels Hofmeyr
525a69ef4e
cosmetic: comment typos
2016-04-19 18:19:30 +02:00
Neels Hofmeyr
a4540be792
hnbgw: set default RNC ID to 23 (for testing)
...
This should ultimately be user configurable, but for now 23 is better than 0.
2016-04-06 18:58:36 +02:00
Neels Hofmeyr
6341f4d410
hnbgw: set DMAIN loglevel to DEBUG by default
2016-04-06 18:58:36 +02:00
Neels Hofmeyr
a0d21479a7
osmo-hnbgw, hnb-test: allow configuring VTY address
2016-02-24 20:51:04 +01:00
Neels Hofmeyr
de111bc1f8
hnbgw: fix errmsg typo
2016-02-18 01:31:30 +01:00
Neels Hofmeyr
110bb5c9af
hnbgw vty: add logging commands
2016-02-18 01:30:42 +01:00
Neels Hofmeyr
44beab9c3b
hnbgw: hnb_context_alloc(): fix missing free, missing return, wrong error return type
...
Also move INIT_LLIST_HEAD further up for good measure (cosmetic).
2016-02-18 01:30:42 +01:00
Daniel Willmann
5f8c718786
hnbgw: Print out the hnbgw context map per HNB
2016-01-14 15:42:07 +01:00
Daniel Willmann
4deab942cc
hnbgw: Mark ps_cnlink as ps
2016-01-14 15:35:11 +01:00
Daniel Willmann
1ee089f37a
hnbgw: When a HNB is released release associated UEs as well
2016-01-07 11:01:15 +01:00
Daniel Willmann
6480cadd8e
hnbgw: Use libosmo-netif for SCCP connection handling
2016-01-07 11:01:12 +01:00
Harald Welte
bdf3fd1dc4
don't include hnbgw.h from ranap header files
...
To use libosmo-ranap from outside of this repository, we need to
eliminated all dependencies to local header files
2016-01-03 17:25:51 +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
90256bad58
Add a context mapper to map RUA ContextIDs <-> SUA Connection IDs
2015-12-23 22:13:53 +01:00
Harald Welte
f42317ba9c
Introduce DRANAP/DRUA log categories to separate logging
2015-12-23 15:37:17 +01:00
Harald Welte
ffa7c0ad39
use msgb_sctp_ppid() from libosmo-netif, remove local declaration
2015-12-23 00:04:05 +01:00
Harald Welte
75a4e65f52
hnbgw: Add SUA client socket towards localhost
...
This socket doesn't do much yet except to connect to localhost:14001
The host/port needs to be made configurable, and the RUA<->SUA
interfacing needs to be implemented.
Also, we'll need two SUA sockets, one for MSC and one for SGSN.
2015-12-23 00:04:05 +01:00
Daniel Willmann
269b8ac7ee
hnbgw: Free msgb when connection is closed
2015-12-22 16:40:46 +01:00
Daniel Willmann
28b9ec1473
Enable vty command to output talloc report
...
I don't think I can print this into a string and thus output it via VTY.
In that case it might be smarte to do in a signal handler
2015-12-17 18:02:37 +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
4267a29ee0
hnbgw: Handle closed connections correctly
...
We still need to clean up the HNB data structures after the connection
is closed
2015-12-17 13:09:18 +01:00
Daniel Willmann
7c27f7b792
hnbgw: Lower level of SCTP notif. msg to debug and set default log level to info
2015-12-17 13:08:32 +01:00
Daniel Willmann
56f6273430
hnbgw: Add VTY commands to show info about connected HNBs and UEs
2015-12-02 12:58:42 +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
1d2c39d83b
various cleanups (compiler warnings, coding style)
2015-09-11 17:49:37 +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
256c67ad81
ue context: fix linked list insert
2015-09-11 01:22:29 +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
350814a5cb
first dispatch of RUA into RANAP
...
This is becoming more and more of a hack, as asn1c + asn1tostruct.py
don't really deal well with the RANAP syntax :(
2015-09-10 22:32:15 +02:00
Harald Welte
318e4d5713
actually dispatch RUA messages to RUA handling code
2015-09-10 18:47:08 +02:00
Harald Welte
f2f3000457
msgb_free() all received messages after handling
2015-09-08 00:09:23 +02:00
Harald Welte
17878e267f
avoid parsing SCTP noficiations as user data
2015-09-08 00:09:13 +02:00
Harald Welte
9e270b4834
hnbgw.c: Fix double-free in wait-queue transmit code
2015-09-07 22:41:26 +02:00
Harald Welte
cfcc1e67ad
use htonl(ppid) when sending a SCTP message
2015-09-07 22:39:56 +02:00
Harald Welte
3f71256750
Use implement HNBAP transmit using per-hnb write_queue
2015-09-07 22:25:35 +02:00
Harald Welte
5c11c94637
hnbgw: Fix SCTP server/receiver
...
* we need to swap PPID endianness
* we need to explicitly subscrie to the event(s) for sctp_sndrcvinfo
2015-09-07 22:25:35 +02:00
Harald Welte
08a793be9f
hnbgw: Initialize linked list header of hnbgw's
2015-09-07 22:25:35 +02:00
Harald Welte
1c0f538a8b
hnbgw: Bind to INADDR_ANY, not to localhost only
2015-09-07 22:25:35 +02:00
Harald Welte
08de638790
start using the shared libasn1c, now that it has aper support
2015-08-31 09:54:45 +02:00
Harald Welte
ee77cff224
hnbgw: Actually link in + call ffasn1c runtime library
2015-08-30 16:57:53 +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