aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gb_proxy.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-05-28 10:59:10 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 16:05:59 +0200
commit91fb6802360608a0d2757d4898bfd2387a2ebdcc (patch)
tree0dee2fcabbc0f128122b114fe8e14b2040dddbd5 /openbsc/include/openbsc/gb_proxy.h
parent67a4445675170c584be6b424e57b07b8c88b05b7 (diff)
gprs: Add MCC/MNC patch support for LLC/GMM messages
This patch extends the BSSGP patch code to also patch LLC information elements along with MCC/MNC patching support for the following messages: - Attach Request - Attach Accept - Routing Area Update Request - Routing Area Update Accept - P-TMSI reallocation command Note that encrypted packets will not be patched. Ticket: OW#1185 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gb_proxy.h')
-rw-r--r--openbsc/include/openbsc/gb_proxy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h
index e078778e3..18ed81f37 100644
--- a/openbsc/include/openbsc/gb_proxy.h
+++ b/openbsc/include/openbsc/gb_proxy.h
@@ -7,6 +7,15 @@
#include <osmocom/gprs/gprs_ns.h>
#include <osmocom/vty/command.h>
+enum gbproxy_patch_mode {
+ GBPROX_PATCH_DEFAULT,
+ GBPROX_PATCH_BSSGP, /*!< BSGGP messages only */
+ GBPROX_PATCH_LLC_ATTACH_REQ, /*!< BSSGP and Attach Request */
+ GBPROX_PATCH_LLC_ATTACH, /*!< BSSGP and Attach Request/Response */
+ GBPROX_PATCH_LLC_GMM, /*!< BSSGP and all GMM msgs */
+ GBPROX_PATCH_LLC, /*!< BSSGP and all supported LLC msgs */
+};
+
struct gbproxy_config {
/* parsed from config file */
uint16_t nsip_sgsn_nsei;
@@ -17,6 +26,7 @@ struct gbproxy_config {
/* force mcc/mnc */
int core_mnc;
int core_mcc;
+ enum gbproxy_patch_mode patch_mode;
};
extern struct gbproxy_config gbcfg;