From: gitosis@osmocom.org
Precedence: list
To: osmocom-commitlog@lists.osmocom.org
Date: Mon, 22 Sep 2014 17:17:19 GMT
Message-ID: <201409221717.s8MHHJGG077533@git.osmocom.org>
Subject: openbsc.git branch jerlbeck/wip/gprs-patching updated.
	0.13.0-682-g00c1cde
Message: 7

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The OpenBSC GSM Base Station Controller (+MSC/HLR/SGSN)".

The branch, jerlbeck/wip/gprs-patching has been updated
       via  00c1cde7861f16a4fe08ad8ffc186644d977e715 (commit)
       via  c388e4247cfc33ea1c4f0eab9502c23fb9d028ac (commit)
       via  012945daf876af9772fb72eb64c2226f1c6f6027 (commit)
       via  eb16391cd7de088adbf3ac64cfbfe0b0c72878b8 (commit)
      from  a391b52103c44076d813bd78fce4586a811481df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cgit.osmocom.org/openbsc/commit/?id=00c1cde7861f16a4fe08ad8ffc186644d977e715

commit 00c1cde7861f16a4fe08ad8ffc186644d977e715
Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
Date:   Mon Sep 22 19:16:06 2014 +0200

    gbproxy/test: Add expect_msg checks to test_gbproxy_keep_info (TODO)
    
    TODO:
     - commit message
     - more tests
    
    Sponsored-by: On-Waves ehf

http://cgit.osmocom.org/openbsc/commit/?id=c388e4247cfc33ea1c4f0eab9502c23fb9d028ac

commit c388e4247cfc33ea1c4f0eab9502c23fb9d028ac
Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
Date:   Mon Sep 22 18:54:34 2014 +0200

    gbproxy/test: Save and check received messages
    
    Currently the only way to check, whether the right message have been
    generated is to look into the generated text output. This is
    error-prone if there are many messages.
    
    This patch adds a way to optionally store all received messages into
    a FIFO. They can then be checked by calling expect_msg() which takes
    NSEI, PDU type and message type as arguments, removes the first
    message from the FIFO and returns != 0 if and only if it matches.
    Each argument can be set by MATCH_ANY to ignore it while matching.
    
    Recording is enabled by setting the global variable received_messages
    to a pointer to a struct llist_head. It can be disabled again by
    setting it to NULL.
    
    Sponsored-by: On-Waves ehf

http://cgit.osmocom.org/openbsc/commit/?id=012945daf876af9772fb72eb64c2226f1c6f6027

commit 012945daf876af9772fb72eb64c2226f1c6f6027
Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
Date:   Mon Sep 22 18:50:08 2014 +0200

    gprs: Fix gprs_msgb_copy pointer computation
    
    Currently the pointer are computed by adding an offset to the new
    message's _data pointer even when the original pointer is NULL.
    This leads to invalid pointers in the copied msgb.
    
    This patch adds a NULL check to each computation such that NULL
    pointers are not adjusted.
    
    Sponsored-by: On-Waves ehf

http://cgit.osmocom.org/openbsc/commit/?id=eb16391cd7de088adbf3ac64cfbfe0b0c72878b8

commit eb16391cd7de088adbf3ac64cfbfe0b0c72878b8
Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
Date:   Mon Sep 22 15:41:21 2014 +0200

    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

-----------------------------------------------------------------------

Summary of changes:
 openbsc/include/openbsc/gb_proxy.h    |   5 +-
 openbsc/src/gprs/gb_proxy.c           |  45 +++++++-------
 openbsc/src/gprs/gb_proxy_tlli.c      |   2 +
 openbsc/src/gprs/gprs_utils.c         |  22 ++++---
 openbsc/tests/gbproxy/gbproxy_test.c  | 112 ++++++++++++++++++++++++++++++++++
 openbsc/tests/gbproxy/gbproxy_test.ok |   6 +-
 6 files changed, 160 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
The OpenBSC GSM Base Station Controller (+MSC/HLR/SGSN)


