Harald Welte
c31f480f08
[VTY] use new struct vty_app_info in libvty
2010-05-25 23:40:38 +02:00
Harald Welte
4b037e4117
Migrate VTY code to libosmovty
2010-05-25 23:40:38 +02:00
Harald Welte
4f1e81543a
[GPRS] NS: Always generate LOG_INFO message when we block NS-VC
2010-05-25 22:17:30 +02:00
Harald Welte
9ac340ef06
[GPRS] Use new 'encapsulation udp local-port 23000' in osmo_sgsn.cfg
2010-05-25 11:20:53 +02:00
Holger Hans Peter Freyther
fa848d4923
gprs: Cast the lh to uint_8* and make the other method non-const
...
We are assigning the header to non const methods... so make
the param non-const.
2010-05-23 21:43:57 +08:00
Holger Hans Peter Freyther
3a6fdcd717
gprs: make gprs_llc_hdr_dump return void.
2010-05-23 21:35:25 +08:00
Holger Hans Peter Freyther
4752e0c3de
gprs_llc.c: memset the llhp struct to be sure it is initialized.
2010-05-23 21:33:57 +08:00
Holger Hans Peter Freyther
d6ca49633c
gb_proxy_vty.c: Remove variable that appears to be unused
...
There is no other in_addr inside this file and it appears
that we don't use the 'ia' right now and will not use it
in the near future.
2010-05-23 21:25:41 +08:00
Holger Hans Peter Freyther
2fbf12dbeb
gprs_ns_frgre.h: Create the header and include it
2010-05-23 21:23:44 +08:00
Holger Hans Peter Freyther
cf4e9c8f07
gprs_ns.c: Make make_socket known to the compiler
2010-05-23 21:19:55 +08:00
Holger Hans Peter Freyther
83e0b3f544
gprs: Fix warnings on funny casts for the return statement
...
Change gprs_nsvc_reset to return void instead of a int
as the gb_proxy.c currently ignores the reutnr value anyway.
Change the caller inside gprs_ns to return the newly allocated
nsvc instead of the return of gprs_nsvc_reset.
2010-05-23 21:18:01 +08:00
Holger Hans Peter Freyther
9e28ecc325
gprs_bssgp.c: Return something from non void methods.
...
In one use the rc variable we are assigning to, in the
others return 0 even if we have a FIXME there.
2010-05-23 21:12:15 +08:00
Holger Hans Peter Freyther
2e22a5d85d
gprs_bssgp.c: Cast const of TLVP_VAL away.
...
Fix a compiler warning, we cast the const away at various
other parts in the code as well. We should consider removing
the const from the TLV struct..
2010-05-23 21:11:19 +08:00
Holger Hans Peter Freyther
cbac76ee0e
gsm_04_11: Include bsc_api.h for the dtap signature.
2010-05-23 21:05:18 +08:00
Holger Hans Peter Freyther
8f443710eb
bs11_config.c: Forward declare BTS init function
2010-05-23 21:05:01 +08:00
Holger Hans Peter Freyther
b9873442c2
vty: The method got renamed, fix various compiler warnings.
2010-05-23 21:02:51 +08:00
Holger Hans Peter Freyther
d92f9aff80
debug: Make GPRS params non-const to avoid compiler warning
...
Make log_set_nsvc_filter, log_set_bvc_filter take a non-const
parameter as we are going to assign it to a non-const pointer.
2010-05-23 20:59:55 +08:00
Holger Hans Peter Freyther
972c1f33b9
gprs: Disable strict aliasing as we are breaking the rules right now
2010-05-23 20:51:03 +08:00
Holger Hans Peter Freyther
0342540813
abis_oml.patch: Really allow to switch from IPA to BS11
...
Add a method to get the tlv_def. Assume when the TLV_FIXED
is used that we look at the base to find the real type. This
appears to work so far.
2010-05-23 06:20:14 +08:00
Holger Hans Peter Freyther
5af5e320d6
abis-oml.patch: Make CGI a TL16V and we have no malformed packet left
2010-05-23 05:46:21 +08:00
Holger Hans Peter Freyther
8d66dfb603
wireshark: Delay the assignment to a varaible
...
The README.developer mentions some compilers have
issues by assigning a non-constant value to a new
variable.
2010-05-23 03:46:46 +08:00
Holger Hans Peter Freyther
aef49cc510
bsc_init: Do not use magic numbers for GSM 12.21 states.
2010-05-22 22:10:53 +08:00
Harald Welte
268bed07c0
[GPRS] Gb proxy VTY: Make sure all lines are aligned properly
2010-05-19 17:42:20 +02:00
Harald Welte
7570c21424
[GPRS] Gb Proxy: print only one line for every BVCI
2010-05-19 17:06:16 +02:00
Harald Welte
6624cae775
[GPRS] NS: Better formatting of VTY output
2010-05-19 17:02:57 +02:00
Harald Welte
94ac58e04e
[GPRS] NS: properly parse FR DLCI on Rx
2010-05-19 16:48:12 +02:00
Harald Welte
e72c61cc6f
[GPRS] NS: Never respond to STATUS with STATUS to prevent loops!
2010-05-19 16:01:39 +02:00
Harald Welte
ea92ac3777
[GPRS] NS: SOCK_RAW sockets always provide the full IPv4 header on receive
2010-05-19 15:53:22 +02:00
Harald Welte
ffe191c477
[GPRS] NS/FR/GRE rcvmsg case: msgb_free() in error case
2010-05-19 15:46:49 +02:00
Harald Welte
6efc176722
[GPRS] Make SGSN more verbose when startup fails
2010-05-19 15:46:31 +02:00
Harald Welte
e4860d7c48
[GPRS] NS: Make sure we allocate NS packet with headroom for FR/GRE
2010-05-19 15:38:10 +02:00
Harald Welte
3c2a88dfe4
[GPRS] NS: FR/GRE: Use AF_INET, correctly encode FR DLCI and GRE payload type
2010-05-19 15:37:34 +02:00
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