diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-19 13:17:55 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-09 17:43:12 +0200 |
commit | 8992f30866224af3d4e6e57bd75af44c81b38d21 (patch) | |
tree | a3ecd12f1c31f61e4b6c105db7dc328ff398676b /openbsc/tests/gbproxy/gbproxy_test.c | |
parent | 08fbeb8fa4c1097c2714e7b4b85079119aebee5b (diff) |
gbproxy: Rename identifiers related to IMSI matching
This patch renames gbproxy_check_tlli() to
gbproxy_imsi_matches() and struct tlli_info's
enable_patching to imsi_matches.
It's meant to be more obvious and consistent this way.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/gbproxy/gbproxy_test.c')
-rw-r--r-- | openbsc/tests/gbproxy/gbproxy_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c index 80bf905e6..b0a39c062 100644 --- a/openbsc/tests/gbproxy/gbproxy_test.c +++ b/openbsc/tests/gbproxy/gbproxy_test.c @@ -151,7 +151,7 @@ static int dump_peers(FILE *stream, int indent, time_t now, if (stored_msgs) fprintf(stream, ", STORED %d", stored_msgs); - if (cfg->check_imsi && tlli_info->enable_patching) + if (cfg->check_imsi && tlli_info->imsi_matches) fprintf(stream, ", IMSI matches"); if (tlli_info->imsi_acq_pending) @@ -3612,13 +3612,13 @@ struct gbproxy_tlli_info *register_tlli( const uint8_t *imsi, size_t imsi_len, time_t now) { struct gbproxy_tlli_info *tlli_info; - int enable_patching = -1; + int imsi_matches = -1; int tlli_already_known = 0; /* Check, whether the IMSI matches */ if (gprs_is_mi_imsi(imsi, imsi_len)) { - enable_patching = gbproxy_check_imsi(peer, imsi, imsi_len); - if (enable_patching < 0) + imsi_matches = gbproxy_check_imsi(peer, imsi, imsi_len); + if (imsi_matches < 0) return NULL; } @@ -3652,8 +3652,8 @@ struct gbproxy_tlli_info *register_tlli( gbproxy_attach_tlli_info(peer, now, tlli_info); gbproxy_update_tlli_info(tlli_info, imsi, imsi_len); - if (enable_patching >= 0) - tlli_info->enable_patching = enable_patching; + if (imsi_matches >= 0) + tlli_info->imsi_matches = imsi_matches; return tlli_info; } |