summaryrefslogtreecommitdiffstats
path: root/tests/utils
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-07-31 20:19:49 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-31 20:19:49 +0200
commit48fd019b43ff2336553f2fe122db6929bea68ae8 (patch)
tree70358dcde277293df69b2ba5c9019b905856c0c2 /tests/utils
parent6db529aedd61191e1d574f97d62bebc8bcaf057d (diff)
cosmetic: More context / naming / comment for test_idtag_parsing()
Change-Id: I1ebeba2067549e0dd1541fa84715d44321ff3b43
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/utils_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/utils/utils_test.c b/tests/utils/utils_test.c
index a146190d..eec13ca3 100644
--- a/tests/utils/utils_test.c
+++ b/tests/utils/utils_test.c
@@ -175,7 +175,8 @@ static void test_idtag_parsing(void)
struct tlv_parsed tvp;
int rc;
- static uint8_t data[] = {
+ /* IPA CCM IDENTITY REQUEST message: 8bit length followed by respective value */
+ static uint8_t id_get_data[] = {
0x01, 0x08,
0x01, 0x07,
0x01, 0x02,
@@ -188,7 +189,7 @@ static void test_idtag_parsing(void)
0x11, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
- rc = ipa_ccm_idtag_parse_off(&tvp, data, sizeof(data), 1);
+ rc = ipa_ccm_idtag_parse_off(&tvp, id_get_data, sizeof(id_get_data), 1);
OSMO_ASSERT(rc == 0);
OSMO_ASSERT(TLVP_PRESENT(&tvp, 8));