aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy_tlli.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-09-22 15:41:21 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-10-09 17:57:28 +0200
commit657502812b09fdce0be168c260ef040c5835b10a (patch)
tree540bd67e2457f3fbb1a65a58fdf980144c9a7f5f /openbsc/src/gprs/gb_proxy_tlli.c
parentd211d1d999586e10c0e1949862536d378f4fecf7 (diff)
gbproxy: Refactor local message generation
This patch adds und uses the function gbproxy_gsm48_to_peer() which takes a GSM 04.08 message, encapsulates it in BSSGP and LLC, and sends it to the BSS peer. This function increments vu_gen_tx_bss which is now used instead of imsi_acq_retries to set the N(U) of the outgoing message. Since imsi_acq_retries isn't currently incremented before a Detach Accept is generated, this patch also fixes the N(U) of such messages. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_tlli.c')
-rw-r--r--openbsc/src/gprs/gb_proxy_tlli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gb_proxy_tlli.c b/openbsc/src/gprs/gb_proxy_tlli.c
index fae05edf8..093d2b328 100644
--- a/openbsc/src/gprs/gb_proxy_tlli.c
+++ b/openbsc/src/gprs/gb_proxy_tlli.c
@@ -238,6 +238,8 @@ struct gbproxy_link_info *gbproxy_link_info_alloc( struct gbproxy_peer *peer)
link_info->tlli.ptmsi = GSM_RESERVED_TMSI;
link_info->sgsn_tlli.ptmsi = GSM_RESERVED_TMSI;
+ link_info->vu_gen_tx_bss = GBPROXY_INIT_VU_GEN_TX;
+
INIT_LLIST_HEAD(&link_info->stored_msgs);
return link_info;