aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-09-17 07:56:09 +0200
committerHarald Welte <laforge@osmocom.org>2021-09-17 07:57:23 +0200
commitb48f438ae9f3cd80b3f858db4620ea8f4a7dca37 (patch)
tree050cb7168b77d74bccfc159d8b3440d60ba015d1 /utils
parenta16b50c5e87ceebc2a23b85b05dd58d55169f198 (diff)
osmo-auc-gen: Permit specifying the SQN in hex (0x12345) format
Use base '0' of strtoul to permit both decimal and hexadecimal input to the SQN parameter. Some other tools represent the SQN as hex, so this avoids having to use some external tool to convert and allows you to copy+paste it to the osmo-auc-gen command line. Change-Id: I67c6341a989de433451994b824e12afd0c26cb8a
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-auc-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 65cfa310..eb6c65bc 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -207,7 +207,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Only UMTS has SQN\n");
exit(2);
}
- sqn = strtoull(optarg, 0, 10);
+ sqn = strtoull(optarg, 0, 0);
sqn_is_set = 1;
break;
case 'i':