This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
miaoski gerrit-no-reply at lists.osmocom.orgmiaoski has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/17694 )
Change subject: pySim-prog.py: check whether IMSI and PLMN matches
......................................................................
pySim-prog.py: check whether IMSI and PLMN matches
PLMN derived with -x and -y should match the beginning of IMSI.
Change-Id: Ic7e98b827f32f8d59d346ceac0d2d215e0180109
---
M pySim-prog.py
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/94/17694/1
diff --git a/pySim-prog.py b/pySim-prog.py
index e3045a6..66fd1f8 100755
--- a/pySim-prog.py
+++ b/pySim-prog.py
@@ -324,6 +324,8 @@
imsi = opts.imsi
if not _isnum(imsi):
raise ValueError('IMSI must be digits only !')
+ if not imsi.startswith(plmn_digits):
+ raise ValueError('IMSI mismatches with PLMN !')
else:
if opts.num is None:
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/17694
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic7e98b827f32f8d59d346ceac0d2d215e0180109
Gerrit-Change-Number: 17694
Gerrit-PatchSet: 1
Gerrit-Owner: miaoski <miaoski at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200401/af3d2f24/attachment.htm>