diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-11-17 14:30:37 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 11:39:28 +0100 |
commit | e2ed8e6cc3eef9f93d8603634072720d20821ebb (patch) | |
tree | 568daf406dc0a3396cd00ab2cb64a9bbcc238e58 /openbsc/src/gprs/gtphub_ares.c | |
parent | 334af5dd9dcee962a25ca9cca9425da5d7f57a2c (diff) |
gtphub: nr_map: add min,max and wrap.
Implement min/max bounds for nr_pool, adjust nr_pool_init() and current tests,
and create unit tests for nr_map wrapping.
Sequence numbers range from 0 to 65535, while TEIs range from 1 to 0xffffffff.
Both cause problems when the nr_pool surpasses the range: seq exit their valid
range, causing unmappings to fail, and a TEI would be mapped as zero (invalid).
Add a comment about TEI wrapping, and lose the comment about random TEIs (not
really important).
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/src/gprs/gtphub_ares.c')
0 files changed, 0 insertions, 0 deletions