aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-17 14:24:46 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-03 11:39:24 +0100
commit334af5dd9dcee962a25ca9cca9425da5d7f57a2c (patch)
tree3d87221a189de2c19e3883303faa8428fea812e3 /openbsc/include
parent5e95a411946ba3c520f048c07f8fdc3dff26d564 (diff)
gtphub: fix number map range for TEIs.
Use unsigned int for nr_map, just large enough to fit the TEI space. Adjust log output formats and casts accordingly. Fixes: TEIs are uint32_t, but the nr_map so far used int. This would cause TEIs from 0x80000000 on to be handled and printed as a negative value. Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gtphub.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gtphub.h b/openbsc/include/openbsc/gtphub.h
index 68cf90e64..c43a32860 100644
--- a/openbsc/include/openbsc/gtphub.h
+++ b/openbsc/include/openbsc/gtphub.h
@@ -249,7 +249,7 @@ int expiry_tick(struct expiry *exq, time_t now);
* NULL, no deallocation will be done (allowing statically allocated entries).
*/
-typedef int nr_t;
+typedef unsigned int nr_t;
/* Generator for unused numbers. So far this counts upwards from zero, but the
* implementation may change in the future. Treat this like an opaque struct.