diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-22 15:41:21 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-09 17:57:28 +0200 |
commit | 657502812b09fdce0be168c260ef040c5835b10a (patch) | |
tree | 540bd67e2457f3fbb1a65a58fdf980144c9a7f5f /openbsc/include/openbsc/gb_proxy.h | |
parent | d211d1d999586e10c0e1949862536d378f4fecf7 (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/include/openbsc/gb_proxy.h')
-rw-r--r-- | openbsc/include/openbsc/gb_proxy.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h index c1882f383..1e8158b60 100644 --- a/openbsc/include/openbsc/gb_proxy.h +++ b/openbsc/include/openbsc/gb_proxy.h @@ -10,6 +10,8 @@ #include <sys/types.h> #include <regex.h> +#define GBPROXY_INIT_VU_GEN_TX 256 + struct rate_ctr_group; struct gprs_gb_parse_context; struct tlv_parsed; @@ -148,11 +150,12 @@ struct gbproxy_link_info { int imsi_acq_pending; struct llist_head stored_msgs; - int imsi_acq_retries; + unsigned vu_gen_tx_bss; int is_deregistered; int imsi_matches; + }; |