aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gb_proxy.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-08-07 10:46:29 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-08-13 10:41:23 +0200
commit291f0508c52666d592ee111254364b0a6809d0ae (patch)
tree751d1c5ed2357d22d265a5d2a726a79ee4fe95d2 /openbsc/include/openbsc/gb_proxy.h
parent89d3d343d1d15fb5f48826c73171c51b61b47efb (diff)
gbproxy: Test and fix IMSI/TMSI matching
This adds a test for gbprox_set_patch_filter() and gbprox_check_imsi(). It also fixes the masking of the type field when IMSIs are checked by using GSM_MI_TYPE_MASK (0x07) instead of 0x0f. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gb_proxy.h')
-rw-r--r--openbsc/include/openbsc/gb_proxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h
index 5a580cdb9..9cd1abbb2 100644
--- a/openbsc/include/openbsc/gb_proxy.h
+++ b/openbsc/include/openbsc/gb_proxy.h
@@ -130,4 +130,6 @@ void gbprox_register_tlli(struct gbproxy_peer *peer, uint32_t tlli,
struct gbproxy_peer *gbproxy_peer_alloc(struct gbproxy_config *cfg, uint16_t bvci);
void gbproxy_peer_free(struct gbproxy_peer *peer);
+int gbprox_check_imsi(struct gbproxy_peer *peer,
+ const uint8_t *imsi, size_t imsi_len);
#endif