Change in libosmocore[master]: osmo-auc-gen: Permit specifying the SQN in hex (0x12345) format

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/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Sep 17 05:57:56 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/25494 )


Change subject: osmo-auc-gen: Permit specifying the SQN in hex (0x12345) format
......................................................................

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
---
M utils/osmo-auc-gen.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/94/25494/1

diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 65cfa31..eb6c65b 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -207,7 +207,7 @@
 				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':

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/25494
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I67c6341a989de433451994b824e12afd0c26cb8a
Gerrit-Change-Number: 25494
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210917/b7dbe63b/attachment.htm>


More information about the gerrit-log mailing list