Harald Welte
ff3bde8b49
[GPRS] NS: VTY: Move all local ip/port bind values into 'ns' node
...
This removes the requirement for gb_proxy and sgsn to have duplicate
vty parsing code
2010-05-19 15:09:09 +02:00
Harald Welte
5540c4cbd3
[GPRS] Add Frame Relay in GRE encapsulation for NS
2010-05-19 14:38:50 +02:00
Harald Welte
3a318ab971
socket: Add support for GRE sockets
2010-05-19 14:11:38 +02:00
Harald Welte
7af4962e07
[SGSN] Gb Proxy: Simplify configuration
...
Almost all parameters about the SGSNs NS-VC can be specified in the NS
protocol node. All that needs to remain in the gbproxy config node
is "nsip sgsn nsei XXX".
2010-05-19 14:04:23 +02:00
Harald Welte
ab1d5626ac
[GPRS] SGSN: use GGSN IP address from config file, disable TMSI allocation
2010-05-18 19:58:38 +02:00
Harald Welte
119c2baaa6
[GPRS] SGSN: actually isert a ggsn context when we allocate it
2010-05-18 18:39:00 +02:00
Harald Welte
51537eef50
[GPRS] SGSN: Make sure libgtp timer doesn't segfault
2010-05-18 18:28:13 +02:00
Harald Welte
b4a3129993
[GPRS] SGSN: No need to calculate difference for libgtp timer
...
The libgtp return value is already a timespan value, not a
wallclock time.
2010-05-18 18:24:53 +02:00
Harald Welte
cd4dd4d7ff
[GPRS] fix numerous compiler warnings
2010-05-18 17:20:49 +02:00
Harald Welte
6463c0799c
[GPRS] SGSN: TMSI allocation
2010-05-18 17:04:55 +02:00
Harald Welte
4e38ac7a8a
[GPRS] SGSN: Correctly set upper 4 bits of PDP address to 0
...
It's really strange. In GTP those 4 bits are 1, in 04.08 they are
zero. Otherwise the IE is exactly the same :/
2010-05-18 14:51:18 +02:00
Harald Welte
269ae75321
[GPRS] SGSN: exit() if we cannot bind to the GTP address
2010-05-18 14:44:31 +02:00
Harald Welte
3c0b9b9c2a
[GPRS] SGSN: Make sure the PCO from GGSN are passed to the MS
2010-05-18 14:36:11 +02:00
Harald Welte
77289c202f
[GPRS] SGSN: properly delete a PDP context after receiving PDP CTX DEACT REQ
2010-05-18 14:32:29 +02:00
Harald Welte
55e0df7c43
[GPRS] SGSN: Don't use GGSN-provided QoS as the MS doesn't like it
2010-05-18 13:20:08 +02:00
Harald Welte
322a5ee954
[GPRS] SGSN: ensure we mark libgtp filedescriptors as READ
2010-05-18 13:13:11 +02:00
Harald Welte
d764c064bb
[GPRS] LLC: Fix logic to detect unknown TLLI/SAPI
2010-05-18 12:45:08 +02:00
Harald Welte
6ffbaab90d
[GPRS] SGSN: properly initialzie pdp_list head of mm ctx
2010-05-18 12:44:45 +02:00
Harald Welte
b61f403dd3
[GPRS] LLC: print human-readable LLC command type
2010-05-18 12:31:50 +02:00
Harald Welte
2e918a87eb
[GPRS] LLC: Add VTY interface for LLC
2010-05-18 12:22:12 +02:00
Harald Welte
68b99a4a08
[GPRS] fix null pointer dereference in GMM
2010-05-18 12:05:42 +02:00
Harald Welte
803bd5ceb2
[GPRS] BSSG: Fix Vty printing of BVC
2010-05-18 12:00:55 +02:00
Harald Welte
b3911a071b
[GPRS] BSSGP: Use correct values for SIGNALLING and PTM BVCI
2010-05-18 11:57:08 +02:00
Harald Welte
75827d65a4
[GPRS] add missing header file gprs_gmm.h
2010-05-18 11:08:11 +02:00
Harald Welte
a7c262ad96
[GPRS] Make sure libsgsn.a is only built when libgtp is available
2010-05-18 11:00:52 +02:00
Harald Welte
8acd88f369
[GPRS] SGSN: Include rate counters in MM Context
2010-05-18 10:57:45 +02:00
Harald Welte
6abf94e420
[GPRS] Properly connect GPRS SM with LIBGTP for PDP context activation
...
* store LLC SAPI as part of PDP ctx
* store NSEI + BVCI as part of MM ctx
* export gsm48_tx_gsm_act_pdp_acc() and call it from sgsn_libgtp.c
* create and use gsm48_tx_gsm_act_pdp_rej for error cases
* print SAPI as part of VTY show pdp
2010-05-18 10:35:06 +02:00
Harald Welte
d2a9ed2285
[GPRS] SGSN: Activate BSSGP VTY functions
2010-05-18 08:02:36 +02:00
Harald Welte
03800ba868
[GPRS] Build osmo-sgsn only if libgtp is available
2010-05-18 00:20:21 +02:00
Harald Welte
d9a55f67ac
[GPRS] BSSGP: Add VTY for configuration and inpection
...
This also includes log filtering based on NSEI/BVCI tuple
2010-05-17 23:41:43 +02:00
Harald Welte
b1b290862a
[GPRS] BSSGP: Introduce packet/byte counters
2010-05-17 23:30:01 +02:00
Harald Welte
5fa2f44fa0
[GPRS] VTY: Add BSSGP node
2010-05-17 23:20:56 +02:00
Harald Welte
5c90e5cfc6
[GPRS] BSSGP: expose more internal structures / API
2010-05-17 23:02:42 +02:00
Harald Welte
ada466f2a7
[GPRS] BSSGP: Rename bssgp_bts_ctx to bssgp_bvc_ctx
...
The Context really is about a BVC (BSSGP Virtual Connection). In
the case we operate BSSGP on the SGSN side, this corresponds to
a link to a BTS.
2010-05-17 22:59:29 +02:00
Harald Welte
d193cb327a
[GPRS] More work on a real SGSN
2010-05-17 22:58:03 +02:00
Harald Welte
8fc1a46f28
[SGSN] remove the mmctx->sgsn pointer
...
We never want to support multiple sgsn's within one process, so
there is no point in passing them around all the time.
2010-05-17 00:53:10 +02:00
Harald Welte
2720e7310d
[GPRS] Initial untested support for libgtp
...
libgtp of the OpenGGSN project will allow us to speak the GTPv0/v1
protocol of the interface between SGSN and GGSN.
This commit includes code for the main libgtp integration (file
descriptor, select loop, timer) as well as code to encode/send
a CREATE PDP CONTEXT request.
2010-05-17 00:44:57 +02:00
Harald Welte
7363e92cd3
[GPRS] NS: Receiving a STATUS message is a NOTICEable event
2010-05-16 23:17:16 +02:00
Harald Welte
5bc61dc384
VTY: separate VTY logging commands and OpenBSC node exit code
2010-05-16 22:02:16 +02:00
Harald Welte
7d9f2230a9
VTY: rename vty_interface.c to bsc_vty.c
...
This should reflect the fact that it contains BSC-specific VTY
commands.
2010-05-16 21:49:35 +02:00
Harald Welte
4f10c25ea8
VTY: Move BSC specific openbsc_vty_print_statistics() to vty_interface.c
2010-05-16 21:47:13 +02:00
Harald Welte
dcccb1818d
VTY: decouple telnet_interface from 'struct gsmnet'
...
We want the VTY and telnet code to be independent from the BSC
application(s). As a side note, we also like to eliminate static
global variables for 'struct gsm_network' all over the code.
As such, telnet_init() is now passed along a "private" pointer,
which getst stored in telnet_connection.priv. This telnet_connection
is then stored in vty->priv, which in turn gets dereferenced if
anyone needs a reference to 'struct gsm_network' from the BSC vty
code.
Also:
* vty_init() now calls cmd_init()
* the ugliness that telnet_init() calls back into the application by means of
bsc_vty_init() function has been removed.
* telnet_init() now returns any errors, so the main program can exit
e.g. if the port is already in use.
2010-05-16 20:52:23 +02:00
Harald Welte
88907a2f92
telnet: cosmetic coding style changes
2010-05-16 19:30:28 +02:00
Harald Welte
9a87ad923d
telnet: remove dead code
2010-05-16 19:29:51 +02:00
Harald Welte
20474ad029
VTY: use argv_concat() instead of vty_argv_to_buffer + buffer_getstr()
2010-05-16 19:28:32 +02:00
Harald Welte
08e2bfa920
VTY: remove accidentially enabled TELNET option debugging
2010-05-16 19:26:51 +02:00
Harald Welte
1353f961ef
VTY: pass program name, version and copyright to vty_init()
...
This enables us to make the VTY completely independent of any
compile-time program-specific information, i.e. one step closer
to using VTY as a shared library from multiple programs.
2010-05-16 19:20:24 +02:00
Harald Welte
3071d6aa7d
VTY: remove dead code
2010-05-16 17:24:03 +02:00
Harald Welte
00fd8b0e03
vty: use install_node_ve() instead of separate ENABLE and VIEW node installs
2010-05-16 17:09:08 +02:00
Harald Welte
9564715c24
VTY: Context-sensitive help for logging related commands
2010-05-16 00:00:04 +02:00