osmo-bsc/openbsc/src
Jacob Erlbeck 006c038212 gprs: Store gbproxy patching state per peer
Currently, all patching state is stored globally in the gbproxy. Thus
the feature cannot be used safely with a concentrating gbproxy (NAT).

This patch moves the state and relevant counters to the gbprox_peer
structure. It adds code to resolve the corresponding peer when
packets are received by looking at BVCI, NSEI, and BSSGP IEs (BVCI,
RAI/LAI/LAC) when the peer is not passed to the
gbprox_patch_bssgp_message() function.

Test cases are also added for the SGSN->BSS case including test cases
with invalid identifiers.

Note that this patch should make it possible to use RAI patching at a
NAT gbproxy as long as the messages are not encrypted.

Ticket: OW#1185
Sponsored-by: On-Waves ehf
2014-07-22 16:53:41 +02:00
..
gprs gprs: Store gbproxy patching state per peer 2014-07-22 16:53:41 +02:00
ipaccess proxy: Annotate the switch/case/fall through 2014-06-12 11:32:25 +02:00
libbsc libbsc, osmo-bsc{, _nat}: Prevent unaligned access when casting TLVP_VAL 2014-07-07 19:04:32 +02:00
libcommon vty: Use vty_install_default() instead of bsc_install_default() 2013-10-30 15:19:00 +01:00
libctrl ctrl: Remove the param parameter as it was never used/implemented 2014-05-15 15:50:55 +02:00
libgb Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
libmgcp osmux: Drop the message in case we don't know the remote yet. 2014-07-22 15:15:13 +02:00
libmsc smpp: Fix small typo in the comment 2014-07-19 19:02:46 +02:00
libtrau trau_mux.c: Prevent out-of-bounds read in trau_decode_fr() 2014-07-22 12:23:03 +02:00
osmo-bsc bsc: Implement a way to relay a message to the remote MSC 2014-07-09 15:22:21 +02:00
osmo-bsc_mgcp mgcp: Change API to remove memory management from the name 2014-07-22 15:00:52 +02:00
osmo-bsc_nat mgcp: Change API to remove memory management from the name 2014-07-22 15:00:52 +02:00
osmo-nitb bsc_hack: Don't strdup the string arguments 2014-05-22 14:34:24 +02:00
utils smpp_mirror: Initialize rc when cmd_id is not DELIVER_SM 2013-12-12 16:20:01 +01:00
Makefile.am Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00