diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-08-27 18:29:46 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-08-27 19:35:13 +0700 |
commit | 9ff1c1a08ed0308259d1dcec82326fea5dcd2197 (patch) | |
tree | 7296957189380557c94be9c5e063e7fcda8fd03b /tests/lapd | |
parent | d925243ca889adea969f527dd6ca83d0503cde00 (diff) |
lapd_test: rename func=UA (RR) CM Service Request: s/ua/ua_cm/
This is basically an ACKnowledgement for (RR) CM Service Request,
thus it contains a copy of the original Uplink message (cm).
Let's rename it to reflect this explicitly.
Change-Id: Id497ff4b688528916495387d64915b14396a68f1
Diffstat (limited to 'tests/lapd')
-rw-r--r-- | tests/lapd/lapd_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c index 8a15b6d3..f1659ef4 100644 --- a/tests/lapd/lapd_test.c +++ b/tests/lapd/lapd_test.c @@ -67,7 +67,7 @@ static const uint8_t cm[] = { 0x29, 0x47, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, }; -static const uint8_t ua[] = { +static const uint8_t ua_cm[] = { 0x01, 0x73, 0x41, 0x05, 0x24, 0x31, 0x03, 0x50, 0x18, 0x93, 0x08, 0x29, 0x47, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x2b, 0x2b, 0x2b, 0x2b @@ -491,7 +491,7 @@ static void test_lapdm_contention_resolution() send_sabm(&bts_to_ms_channel, 0, cm, sizeof(cm)); rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH"); CHECK_RC(rc); - OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua, ARRAY_SIZE(ua)) == 0); + OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua_cm, ARRAY_SIZE(ua_cm)) == 0); msgb_free(pp.oph.msg); /* Send SABM MS 2, we must get nothing, due to collision */ @@ -507,7 +507,7 @@ static void test_lapdm_contention_resolution() send_sabm(&bts_to_ms_channel, 0, cm, sizeof(cm)); rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH"); CHECK_RC(rc); - OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua, ARRAY_SIZE(ua)) == 0); + OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua_cm, ARRAY_SIZE(ua_cm)) == 0); msgb_free(pp.oph.msg); /* clean up */ @@ -698,7 +698,7 @@ static void test_lapdm_desync() rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH"); CHECK_RC(rc); - OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua, ARRAY_SIZE(ua)) == 0); + OSMO_ASSERT(memcmp(pp.oph.msg->l2h, ua_cm, ARRAY_SIZE(ua_cm)) == 0); msgb_free(pp.oph.msg); printf("\nSending Classmark Change\n"); |