summaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-05-19 10:14:58 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 16:04:54 +0200
commit67a4445675170c584be6b424e57b07b8c88b05b7 (patch)
tree5af5d41af928b2ce676dca323266e6c805ea90f6 /openbsc/include/openbsc
parentfd636aed1ed266d68c0a8cec4750f068fc911cd2 (diff)
gprs: Implement BSSGP MCC/MNC patching
This adds a feature to patch the BSSGP MNC/MCC fields of messages going to and coming from the SGSN. To enable this feature, the gbproxy's VTY commands 'core-mobile-country-code' and/or 'core-mobile-network-code' must be used. All packets to the SGSN are patched to match the configured values. Packets received from the SGSN are patched to the corresponding values as last seen from the BSS side. Note that this will probably not work with a gbproxy used for several BSS simultaneously. Note also, that MCC/MNC contained in a LLC IE will not be patched. Ticket: OW#1185 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/gb_proxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h
index 5f1f3a77a..e078778e3 100644
--- a/openbsc/include/openbsc/gb_proxy.h
+++ b/openbsc/include/openbsc/gb_proxy.h
@@ -13,6 +13,10 @@ struct gbproxy_config {
/* misc */
struct gprs_ns_inst *nsi;
+
+ /* force mcc/mnc */
+ int core_mnc;
+ int core_mcc;
};
extern struct gbproxy_config gbcfg;